Thread overview
[Issue 23306] @disable new() ought not disable `scope A = new A`
Aug 27, 2022
kinke
Aug 27, 2022
Adam D. Ruppe
Sep 06, 2022
RazvanN
August 27, 2022
https://issues.dlang.org/show_bug.cgi?id=23306

kinke <kinke@gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kinke@gmx.net

--- Comment #1 from kinke <kinke@gmx.net> ---
> @disable new can be used to disable the `new` operator on a thing so it isn't accidentally GC managed

Oh wow, never seen that and haven't found it in the spec... ?

--
August 27, 2022
https://issues.dlang.org/show_bug.cgi?id=23306

--- Comment #2 from Adam D. Ruppe <destructionator@gmail.com> ---
It has been there since the beginning. The spec PR got stalled and closed though https://github.com/dlang/dlang.org/pull/2846/files

--
September 06, 2022
https://issues.dlang.org/show_bug.cgi?id=23306

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |FIXED

--- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> ---
Fixed by: https://github.com/dlang/dmd/pull/14403

--