Leak-detection of references to scoped class instances

rikki cattermole rikki at cattermole.co.nz
Sun Nov 24 12:51:53 UTC 2019


"Allocates a class object right inside the current scope, therefore 
avoiding the overhead of new. This facility is unsafe; it is the 
responsibility of the user to not escape a reference to the object 
outside the scope."

https://dlang.org/phobos/std_typecons.html#.scoped


More information about the Digitalmars-d-learn mailing list