Variable newFrame

A string to mixin at the beginning of a scope, purely for convenience. Initializes a TempAlloc frame using frameInit(), and inserts a scope statement to delete this frame at the end of the current scope.

immutable(char[]) newFrame = "TempAlloc.frameInit(); scope(exit) TempAlloc.frameFree();";

Slower than calling free() manually when only a few pieces of memory will be allocated in the current scope, due to the extra bookkeeping involved. Can be faster, however, when large amounts of allocations, such as arrays of arrays, are allocated, due to caching of data stored in thread-local storage.