Mercurial > projects > ddmd
view dmd/TypeNewArray.d @ 99:903b95002d4e
Id and Macro are quite experimental currently
author | Trass3r |
---|---|
date | Tue, 31 Aug 2010 04:04:33 +0200 |
parents | 43073c7c7769 |
children | e28b18c23469 |
line wrap: on
line source
module dmd.TypeNewArray; 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"); } 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]"); } }