Clone

heapPtr Clone(heapPtr object)

Creates a new instance of a class or object and returns a pointer to it.

Example

(var newEvent)
= newEvent Clone(Event) // create an instance of Event and store the pointer into newEvent
GetEvent($7FFF newEvent) // use the instance
DisposeClone(Event) // dispose of the instance

see also: DisposeClone