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

bearophile_h...@eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_h...@eml.cc

--- Comment #2 from bearophile_h...@eml.cc ---
(In reply to Kenji Hara from comment #1)
> In D2 git-head, @nogc attribute should accept such stack allocation of
> anonymous class.
> 
> void foo() @nogc {
>     scope bar = new class Object {}; // should be allowed
> }
> 
> D2 fix:
> https://github.com/D-Programming-Language/dmd/pull/3593

But isn't such usage of "scope" deprecated for D2?

--

Reply via email to