On the D Blog--Symphony of Destruction: Structs, Classes, and the GC

Max Samukha maxsamukha at gmail.com
Fri Mar 5 13:26:57 UTC 2021


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.


More information about the Digitalmars-d-announce mailing list