/
ColdC/Functions/
ColdC/Structure/
<head><title>ColdC: Function/Method Reference: destroy()</title></head>

<body>

<h1 align=center><a href="/ColdC/">ColdC</a>: <a href="/ColdC/Functions/">Function/Method Reference</a>: destroy()</h1>

<hr>

<p>
<font size=+1><i>INTEGER</i> <b>destroy</b>()</font>

<p>This function marks the current object for destruction.  The object is
destroyed when all methods executing on it are completed (suspended and
preempted methods as well as the current task). Objects left orphaned
by the destruction of their only parent are reparented to the parents
of the parent which was destroyed.

<P>Attempts to destroy the root or system objects will fail with the
error <code>~perm</code>.

<p><hr size=4><p align=center><i>Last Modified on Feb 28 1996</i>
<br><i>Copyright &copy; 1995, 1996, Brandon Gillespie</i>
</body>