Going through types..

BlitzMax Forums/BlitzMax Programming/Going through types..

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If I null all the fields will it remove itself?


No, references to the object.

IE:

A:MyType=New MyType '<< Now A has a reference to our object.
A=Null ' << Now it doesn't. We've nulled it.


Ahh!! i get this error: Unable to convert from 'Type' to 'Object', when i run this code:

Where did t come from? Where is it declared? If you're doing it in the New() method as I suggested, the variable you're assigning the object to has not yet been declared and does not have scope anyway. You only need Link=List.AddLast(Self)