Blog: GC

Nick Treleaven nick at geany.org
Sun Mar 7 08:40:23 UTC 2021


On Saturday, 6 March 2021 at 21:12:51 UTC, Rumbu wrote:
> At least I didn't found any reference in the language 
> specification except the one of scoped classes, which, of 
> course, will be deprecated.

"For local declarations, scope implements the RAII (Resource 
Acquisition Is Initialization) protocol. This means that the 
destructor for an object is automatically called when the 
reference to it goes out of scope."

https://dlang.org/spec/attribute.html#scope


More information about the Digitalmars-d mailing list