Destructor nonsense on dlang.org

Michel Fortin michel.fortin at michelf.com
Thu May 24 07:00:59 PDT 2012


On 2012-05-24 13:38:01 +0000, "Steven Schveighoffer" 
<schveiguy at yahoo.com> said:

> However, I'd tend to believe Java implementations will attempt to invoke
> all finalizers of objects left on the heap at program shutdown.

In Java you can call System.runFinalizersOnExit(true), but the default 
is false and this method has been deprecated because unsafe in 
multithreaded environments.

<http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#runFinalization()>


-- 


Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list