D Language 2.0

Adam D. Ruppe destructionator at gmail.com
Wed Jan 20 07:52:09 PST 2010


On Wed, Jan 20, 2010 at 10:18:52AM -0300, Leandro Lucarella wrote:
> > Walter and I talked for hours about a no-gc model for D, and the
> > conclusion was that with only a little compiler support, things can
> > be arranged such that swapping different object.d implementations,
> > the entire D allocation model can be swapped between traditional GC
> > and reference counting.
> 
> Again? RC is *not* -nogc, is -anothergc. And reference counting won't do
> the trick unless you add a backing GC to free cycles. What I mean about
> -nogc is *no* GC, is "please, mr compiler, give me an error when a GC
> facility is used".

The changes done to the compiler to support this should open the window for
nogc too.

If all those types were in object.d, we should (hopefully)  have the option
of using an object.d with the relevant functions stubbed with static assert(0);

-- 
Adam D. Ruppe
http://arsdnet.net



More information about the Digitalmars-d mailing list