Destroys the Int object and frees its memory.
Result := Int_destroy(IntObject)
Parameters
| IntObject |
The Int object to use for the current operation. |
Return Value
True (1) if the Int was actually
destroyed,
or False (0) if the Int was not destroyed (see 1 below).
Remarks
The object will not be destroyed
if:
- The lock count for IntObject
is more than one. In this case, the lock count for IntObject will be
decreased by one, and the function returns false to indicate that the
object still exists.
- IntObject is NULL (0 or blank) - returns the empty string to indicate
an error.
Related
Int_new
Int
Examples
;Creates a new Int initialized to 42
myInt := Int_new(42)
;Destroys myInt and frees its memory
Result := Int_destroy(myInt)
Homepage | Wrappers