class destructors must be @disabled?

bauss jj_1337 at live.dk
Thu May 19 06:36:07 UTC 2022


On Wednesday, 18 May 2022 at 19:58:09 UTC, Ali Çehreli wrote:
>
> Hmm. Perhaps the guideline should be "all destructors must be 
> @nogc".
>
> Ali

It should probably just default to that and with no exception, 
since you will never end up in a situation where you don't want 
@nogc for a destructor.

At least I can't imagine one, and if there is one then it's 
probably due to another design issue in one's program.


More information about the Digitalmars-d-learn mailing list