Double_destroy

Homepage Wrappers

Destroys the Double object and frees its memory.

Result := Double_destroy(DoubleObject)

Parameters

DoubleObject The Double object to use for the current operation.

Return Value

True (1) if the Double was actually destroyed,
or False (0) if the Double was not destroyed (see 1 below).

Remarks

The object will not be destroyed if:

  1. The lock count for DoubleObject is more than one. In this case, the lock count for DoubleObject will be decreased by one, and the function returns false to indicate that the object still exists.
  2. DoubleObject is NULL (0 or blank) - returns the empty string to indicate an error.

Related

Double_new

Double

Examples

;Creates a new Double initialized to 3.14
myDouble := Double_new(3.14)

;Destroys myDouble and frees its memory
Result := Double_destroy(myDouble)

Homepage  |  Wrappers