std.allocator needs your help
Walter Bright
newshound2 at digitalmars.com
Mon Sep 23 11:24:12 PDT 2013
On 9/23/2013 3:17 AM, Manu wrote:
> Sure, true. But little things like separate it into its own lib, so you can
> easily link a different one, or not link one at all.
To link in a different one, put the different one on the link command before
libphobos2.a. The different one will override the one in the library.
> Also, what about language support?
How it's done is deliberately not part of the language.
> How much language support is there currently?
Zero.
> I don't think I could currently write the ref-counting GC that I'd like without
> extensive language support.
> inc/dec ref calls would need to be inserted all over the place by he compiler,
> and optimiser would need to know how to remove redundant inc/dec sequences.
A ref counting system is something entirely different than just plugging in
another GC.
More information about the Digitalmars-d
mailing list