Destructors vs. Finalizers

Dgame via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 27 04:52:51 PDT 2017


> Consider reference counting with cycles. The proposal from 
> Walter/Andrei is to do reference counting to clean up 
> everything but cycles. For cycles, the GC will take care of it.

That is the PHP way to do things. :) It's neat but I still think 
the only real thing to deal with resources is built-in ownership 
like Rust does it. But that's a bit out of question for D2 I 
suppose. What's the state of the RC approach?



More information about the Digitalmars-d mailing list