GC vs Resource management.

monnoroch via Digitalmars-d digitalmars-d at puremagic.com
Sat May 3 05:39:02 PDT 2014


> Hey I have this global variable, if I assign a value to it and 
> later null it, it'll call its destructor if its not referenced 
> anywhere else.
> Which in turn would make me think ref counting would be a good 
> idea.

It seems, that ARC is the only way. There were idea to make all 
non-scoped (in my terminology) objects ARC-d, if they have dtors. 
That makes sense to me.


More information about the Digitalmars-d mailing list