might be missing something in the docs here, how would u do object and handle in max? (probally changed its name but same thing)
object handle
BlitzMax Forums/BlitzMax Programming/object handle All types are derived from the object class/type.
So you can do this,
Type MyType
Field Test
End Type
A:MyType = New MyType
Obj:Object=Object( A )
I.e you can make any type an object and pass it around. And transform it into any other class below it in the class tree.
So you can do this,
Type MyType
Field Test
End Type
A:MyType = New MyType
Obj:Object=Object( A )
I.e you can make any type an object and pass it around. And transform it into any other class below it in the class tree.
Plus we have proper pointers now, so Handle and Object are irrelevant anyway.
How would you cast an Int or Object back to a Type tho?
Type( ... ) -> cast to type
this is only allowed within the same derivation tree.
this is only allowed within the same derivation tree.
interesting.
Local rememberme = a
should work also.
Local rememberme = a
should work also.