Does anyone know what the function 'Object' does?

Blitz3D Forums/Blitz3D Programming/Does anyone know what the function 'Object' does?

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.

Object.typename(objecthandle)

typename: the custom type the Object function should return
objecthandle: an integer handle produced by the Handle function

The Object function takes the integer handle of an object and if it exists
returns an actual reference to the object given it is of the Type specified.

Handle(object)

object: an instance of a custom type

The Handle command allows you to retrieve an integer handle for a specific
instance of a custom type.

Because the result is an integer, Handle allows a reference to any type of
object to be stored in a standard integer variable where custom type variables
may only reference objects of a single specified type. This freedom opens the
door for those wishing to implement more abstract functions that can deal
with multiple types of data.