How do you deal with scoped allocations?

thedeemon dlang at thedeemon.com
Sun Dec 8 10:18:21 PST 2013


On Saturday, 7 December 2013 at 22:32:59 UTC, Namespace wrote:
> Since my last thread doesn't get much attention I like to ask 
> here: How did you deal with temporary memory?

I just use
     scope(exit) delete buf;

Your solution seems to do a GC every time some buffer goes out of 
scope, which is slooow.


More information about the Digitalmars-d mailing list