Get All Objects
BlitzMax Forums/BlitzMax Programming/Get All Objects
| ||
Is it possible to get all instantiated objects? I was thinking I might be able to do this via reflection but I'm not finding a way. Thanks! |
| ||
This was one of the features of Blitz3D that didn't make it into BlitzMax, so it's something that I figured out how to do when I first started with BM as I find it easier to do certain types of things this way as well. Unfortunately I don't have an answer if you want to do this with built in types / objects returned by BlitzMax internal functions, but you can do it for your own types. Basically you can do this for types that you write by just adding them to a static list - you can create this type as a base type and extend all your types from it: |
| ||
Is it possible to get all instantiated objects? What for? It's something weird to do unless you're trying to build a debugger or the like |