Global variable inside type exist when discarded.

BlitzMax Forums/BlitzMax Programming/Global variable inside type exist when discarded.

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.


First, Types are NOT objects. This is important. When you go New, or such you make an INSTANCE of a TYPE. An Instance of a Type is an object.



You see, thats just it I know this. Just typing to quickly. I also need to remember that Bmax has OOP but with some new additions of its own.


Second, do not call Release on objects.



So I assume you kill an object with Null.

And what am I to make of this in the blitz docs...

Release references to a handle or object





Incidently you really shouldn't reference an instance once it's been dereferenced. It might work now, but I'm thinking that's more of a fluke than by design.



Yes, and I must not forget that this is the beta!