On 03/21/2017 11:47 PM, Ali Çehreli wrote:

>     method(false);
>     method(true);
> }
>
> Gotta love D for allowing such code but it comes with surprises. Why do
> we suddenly get two destructor calls?
>
> ~this
> ~this

Answering own question: There are two destructor calls because I call method() twice.

Ali

Reply via email to