[Issue 23306] @disable new() ought not disable `scope A = new A`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 27 18:25:13 UTC 2022


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

kinke <kinke at gmx.net> changed:

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

--- Comment #1 from kinke <kinke at 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... ?

--


More information about the Digitalmars-d-bugs mailing list