Exceptions in @nogc code
Johannes Pfau via Digitalmars-d
digitalmars-d at puremagic.com
Sun Apr 2 11:16:43 PDT 2017
Am Sun, 02 Apr 2017 00:09:09 +0000
schrieb Adam D. Ruppe <destructionator at gmail.com>:
> On Saturday, 1 April 2017 at 14:54:21 UTC, deadalnix wrote:
> > The problem you want to address is not GC allocations, it is GC
> > collection cycles. If everything is freed, then there is no GC
> > problem. not only this, but this is the only way GC and nogc
> > code will interact with each others.
>
> Amen. Moreover, for little things like exceptions, you can
> probably also just hack it to not do a collection cycle when
> allocating them.
I do not want GC _allocation_ for embedded systems (don't even
want to link in the GC or GC stub code) ;-)
-- Johannes
More information about the Digitalmars-d
mailing list