Mercurial > projects > ddmd
view dmd/TypeNewArray.d @ 165:25ede4f66bda
Temporarily disabled GC (again) because phobos fails to compile with it (looks like some ObjSymbols are being falsely collected, see Library.d:666)
Getting rid of global state (i.e global and static variables) to allow running concurrent compilation
author | korDen |
---|---|
date | Thu, 30 Sep 2010 10:04:32 +0400 |
parents | 14feb7ae01a6 |
children | e3afd1303184 |
line wrap: on
line source
module dmd.TypeNewArray; import dmd.common; import dmd.HdrGenState; import dmd.MOD; import dmd.OutBuffer; import dmd.Type; import dmd.TypeNext; import dmd.TY; /** T[new] */ class TypeNewArray : TypeNext { this(Type next) { super(Tnarray, next); //writef("TypeNewArray\n"); } override void toCBuffer2(OutBuffer buf, HdrGenState *hgs, MOD mod) { if (mod != this.mod) { toCBuffer3(buf, hgs, mod); return; } next.toCBuffer2(buf, hgs, this.mod); buf.writestring("[new]"); } }