Re:Why we created Julia - new language for fresh approach to...
by wbhart on Monday February 20, 2012 @12:51AM
(#3611464)
Ah, there are finalisers. The function finalizer lets you define a function to be called when there are no more references to an object. I guess maybe the idea is to use this from within the constructor.
One other slight difficulty seems to be the lack of finilisers, e.g. to clean up a GMP bignum when there are no remaining references to it.