Destructors can't be @nogc?

user1234 user1234 at 12.de
Sun Jul 25 01:18:54 UTC 2021


On Sunday, 25 July 2021 at 01:17:06 UTC, user1234 wrote:
> That bypasses the runtime mechanism for classes construction 
> and destruction.
> But `new` and `destroy` must not be called anymore, you must 
> get stick with your own system.

and of course `cast(Object)` should be prohibited (maybe `opCast` 
overload can enforce that).




More information about the Digitalmars-d-learn mailing list