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.
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.