Can anyone illuminate my vast levels of ignorance on what's going on in the code below? After the deletion of the type instance, 'btype.mytype' is set to null even though its contents were apparently not modified. Do type pointers reference each other, or is Blitz doing some sort of garbage collection on the pointers pointing to a deleted instance.
I guess this behaviour makes sense as it would cause serious issues if you attempted to access a deleted type via a copied type pointer.
I guess this behaviour makes sense as it would cause serious issues if you attempted to access a deleted type via a copied type pointer.
Graphics 800,600 Type mytype Field x End Type atype.mytype = New mytype btype.mytype = atype.mytype If btype.mytype = Null Then Print "NULL BEFORE DELETE" Delete atype.mytype If btype.mytype = Null Then Print "NULL AFTER DELETE" WaitKey () End