strange work of GC

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Feb 6 13:38:20 PST 2015


On Friday, 6 February 2015 at 21:07:14 UTC, anonymous wrote:
> This is you GC allocating in a destructor (the writeln calls). 
> The GC can't handle that.

Note that it isn't writeln itself, it is the ~ used in building 
the string. If you change that to a comma, it'll work better 
(writeln can take multiple arguments and avoid allocating an 
intermediate string (sometimes))


More information about the Digitalmars-d-learn mailing list