Hi!
Just a small question:
On Thu, Apr 28, 2005 at 04:37:21PM -0400, Dan Sugalski wrote:If you don't have the destroy, and don't tag the object as needing expedited cleanup, then the finalizer *will* still be called. You just don't have any control over when its called.
Will there be destructors on imcc or language level?
Yes. Or no, depending on your terminology. We're calling them finalizers since that's what they really are, as there's no memory to destroy. There's a vtable method that's called by the GC system when an object is no longer reachable from the root set.
And if so, what would the purpose of them be?
It's there so that if there's any sort of cleanup that needs doing -- closing DB handles or files, destroying windows, updating stats -- can be done. You don't have to free memory unless you've managed to allocate it in a way that parrot's not tracking it.
--
Dan
--------------------------------------it's like this------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk