Why is dtor called for lazy parameter?

drug drug2004 at bk.ru
Fri Sep 18 13:39:19 UTC 2020


On 9/18/20 4:30 PM, drug wrote:
> Can't you put a var on the stack?
> ```
> auto instance = create();
> instance
>          .do_lazy()
>          .do_something();
> ```

Ah, I totally missed your point. Now I see you can't...


More information about the Digitalmars-d-learn mailing list