[Issue 14492] Deprecate scope for allocating classes on the stack

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 10 19:18:21 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=14492

--- Comment #8 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
(In reply to Iain Buclaw from comment #7)
> DDMD still depends on this heavily.  For now scope class is going nowhere,
> if the idea of deprecating it hasn't already been completely reversed.

If I understand DIP 1000 correctly, I think that the original meaning of scope
on class reference is basically becoming an optimization done with scope rather
than the direct purpose of the feature, and the work with DIP 1000 should in
theory make it @safe. So, if DIP 1000 is accepted (and I assume it will be once
it's ready, since it's Walter who's doing it, and he's spent a lot of time on
it), then scope on class references is here to stay.

--


More information about the Digitalmars-d-bugs mailing list