On 6 April 2013 19:51, Peter Alexander <[email protected]> wrote:
> You can switch off the GC, but then things will leak as the core language, > druntime, and phobos all use the GC is many cases. > > What I do is just avoid the functions that allocate, and rewrite the ones > I need. I also use a modified druntime that prints callstacks when a GC > allocation occurs, so I know if it happens by accident. > This needs to be a feature in the standard library that you can turn on... or a compiler option (version?) that will make it complain at compile time when you call functions that may produce hidden allocations.
