D classes inherane. How it works.
    Robert Fraser 
    fraserofthenight at gmail.com
       
    Tue Apr  8 22:46:40 PDT 2008
    
    
  
BCS wrote:
> that only works in most cases where the object only owns memory 
> resources. If it owns files, mutexes, database connections, stock 
> options or Corvettes, your sunk.
Really? I have yet to write a finalize() method in Java. IMO, using 
close() methods for non-memory resources and letting the GC clean up the 
memory makes for less cognitive load than worrying about the order of 
destruction, etc., etc.
    
    
More information about the Digitalmars-d
mailing list