DIP60: @nogc attribute
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Fri Apr 18 16:44:29 PDT 2014
On 4/18/2014 1:58 PM, Steven Schveighoffer wrote:
> This isn't correct. Only structs cannot have internal references. Objects don't
> move or copy so easily.
Objects can't have internal references either, for the same reason.
> Not only that, but internal pointers would not prevent a moving GC.
They would just make it much more costly, as one would have to detect them at
runtime.
> Note, there are much more practical reasons to enable reference counting --
> interoperating natively with Objective-C and iOS/MacOS.
Right, but that isn't pervasive ARC.
More information about the Digitalmars-d
mailing list