Product SiteDocumentation Site

5.2.4.26. uninit


>>-uninit------------------------------------------------------><

This method cleans up the object when it is garbage collected. It should not be invoked directly except via an uninit method of a subclass of the Stream class.
If the Stream class is subclassed and the subclass provides an uninit method then that method must invoke the superclass uninit method.

Example 5.127. Stream object - UNINIT method


::class CustomStream subclass Stream

...

::method uninit
/* the subclass instance cleanup code should be placed here */
super~uninit  -- this should be the last action in the method
return