Pointer to function

Blitz3D Forums/Blitz3D Programming/Pointer to function

Object() and Handle() aren't officially supported. However, they are widely used by people.

Type MyType
  Field a,b,c
End Type

a.MyType = New MyType

; Get a unique integer ID for this type instance.
a_handle = Handle(a)

; Retrieve pointer to type instance associated with handle ID.
b.MyType = Object.MyType(a_handle)