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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Apr 24 03:02:07 PDT 2015


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

Jonathan M Davis <issues.dlang at jmdavisProg.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |issues.dlang at jmdavisProg.co
                   |                            |m

--- Comment #2 from Jonathan M Davis <issues.dlang at jmdavisProg.com> ---
(In reply to bearophile_hugs from comment #1)
> Is this feature not used in Phobos?

The only place that I see it in Phobos is in a bit of code in std.datetime that
Kenji refactored a while back. No idea what it's used there. Something to do
with the windows registry. There might be a couple of other places, but it's
quite rare. Part of that though is the fact that classes are quite rare in
Phobos.

The only official place that I'm aware of where scope is used much at all is in
ddmd. I expect that it will be trivial to remove it entirely from Phobos, but I
don't know what it'll take to remove it from ddmd.

--


More information about the Digitalmars-d-bugs mailing list