On Thursday, 4 March 2021 at 13:54:48 UTC, Mike Parker wrote:

The blog:
https://dlang.org/blog/2021/03/04/symphony-of-destruction-structs-classes-and-the-gc-part-one/

"The destructors of all stack-allocated structs in a given scope are invoked when the scope exits."

Please add a note that temporaries are scoped to the full expression, not the block.

Reply via email to