> Hi list (aimed at Nicolas),
> 
> I've been thinking. It would be really cool to be able to implement 
> destructors in my haXe classes, even if just for Neko. I can create 
> pseudo-destructor methods for anything accessing a custom .ndll, but 
> what would it take to integrate this into the language proper?  Also, 
> couldn't this be done with the JS as well, using the page.onUnload?
> 
> Lee

Any destructor scheme is highly dependent on the way the GC works. If it
could be avoided, you shouldn't use destructors. They are only used in
Neko because you need to prevent memory leaks caused by C'allocated
structures. Any other kind of finalization (closing a file, ...) should
be handled manually by the user using an explicit method.

Nicolas

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to