DIP 1014

Shachar Shemesh shachar at weka.io
Wed Oct 3 15:47:34 UTC 2018


On 03/10/18 18:33, Shachar Shemesh wrote:
>       ~this() {
>          writefln("%s destructed", &this);
>          assert(counter is null || counter is &localCounter);
>      }

You might also want to add @disable this(this); and remove the dead code 
(i.e. - the case where the pointer is global) to reduce noise. I 
verified that neither one changes anything in the outcome.

Shachar


More information about the Digitalmars-d mailing list