[Issue 19258] Cannot @disable ~this()

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 30 16:05:53 UTC 2018


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

--- Comment #4 from Илья Ярошенко <ilyayaroshenko at gmail.com> ---
(In reply to Nicholas Wilson from comment #3)
> I'm not sure what the desired effect of @disabling the destructor is
> supposed to achieve? If this is for C++ integration either: a) don't declare
> it or b) if is required to consume a viable slot declare a dummy function.

The reason is to be sure that a D compiler does not compile ~this at all.

--


More information about the Digitalmars-d-bugs mailing list