D gc on local objects

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Wed Apr 16 10:19:28 PDT 2014


On Wednesday, 16 April 2014 at 17:14:55 UTC, John Colvin wrote:
> I would love to have a "scope" that works properly, with or 
> without blade-guards to stop me chopping off my hands when the 
> function returns.

The blade guards are the important part though: if you just want 
the allocation pattern, you can do that fairly easily yourself 
with plain library code and stuff like scope(exit) or raii 
destructors.


More information about the Digitalmars-d mailing list