[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ADT List
Peter Froehlich wrote:
> >PROCEDURE Destroy* (VAR l: List);
> >(* Removes all elements from list `l' and destroys the list object itself.
> > The variable parameter `l' is set to NIL.
> > Note: The user is not required to call this procedure. Resources like
> > unused lists are automatically freed by the garbage collector. This
> > procedure is provided for convenience, both for the user and the garbage
> > collector. *)
> > END Destroy;
>
> Reminds me of NCL again: If OOC supports "CLOSE" (or some equivalent
> library function) I could actually contribute code to simulate "real"
> destructors.
I'm currently working on a "real" garbage collector for OOC which wouldsupport
arbitrary destructors for any object. No idea when this will be
completed (soon I hope) but you may want to keep this in mind.
Michael G.