clear() and UFCS

Ary Manzana ary at esperanto.org.ar
Fri May 25 23:31:46 PDT 2012


On 5/25/12 22:42 , Steven Schveighoffer wrote:
> Finalize isn't right, and neither is dispose...

In Java it's finalize:

http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html#finalize()

In Ruby it's define_finalizer:

http://www.ruby-doc.org/core-1.9.3/ObjectSpace.html#method-c-define_finalizer

Why not calling finalize then? A bonus is that programmers coming from 
those languages will find the name more intuitive.


More information about the Digitalmars-d mailing list