Opaque handles...

Namespace rswhite4 at googlemail.com
Wed Sep 18 09:24:52 PDT 2013


> One final problem with ref-counting in D. Since it's not a 1st 
> class
> feature and requires you to store a ref-count in your object, 
> you can't
> make your objects immutable anymore because the ref-count needs 
> to be
> bumped about as the object moves around. Anyone approached this 
> problem?

I use a shared_ptr (especially if I deal with C memory).


More information about the Digitalmars-d mailing list