RCArray is unsafe

Zach the Mystic via Digitalmars-d digitalmars-d at puremagic.com
Sun Mar 1 10:29:43 PST 2015


On Sunday, 1 March 2015 at 17:48:15 UTC, Marc Sch├╝tz wrote:
> That's not applicable here though. The compiler doesn't know 
> we're doing reference counting, so it cannot insert 
> AddRef/Release calls.

Why can't structs also implement opAddRef/Release? Why is it 
restricted to classes?


More information about the Digitalmars-d mailing list