More on C++ stack arrays

John Colvin john.loughran.colvin at gmail.com
Wed Oct 23 14:30:24 PDT 2013


On Tuesday, 22 October 2013 at 21:05:33 UTC, Lionello Lunesu 
wrote:
> Careful! Alloca doesn't get cleaned up when used in loops!

scope(exit) works in a loop, so you can automatically clean it up 
like that.

Destructors are also called on each iteration so RAII is an 
option.


More information about the Digitalmars-d mailing list