Disable GC entirely

Manu turkeyman at gmail.com
Sun Apr 7 18:03:44 PDT 2013


On 6 April 2013 19:51, Peter Alexander <peter.alexander.au at gmail.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130408/78224bfe/attachment.html>


More information about the Digitalmars-d mailing list