Mercurial > projects > ddmd
diff dmd/TypeSArray.d @ 67:f708f0452e81
some of the backend/codegen stuff implemented
author | korDen |
---|---|
date | Mon, 23 Aug 2010 21:21:05 +0400 |
parents | 4290d870944a |
children | 2e2a5c3f943a |
line wrap: on
line diff
--- a/dmd/TypeSArray.d Mon Aug 23 20:38:30 2010 +0400 +++ b/dmd/TypeSArray.d Mon Aug 23 21:21:05 2010 +0400 @@ -306,7 +306,13 @@ void toCBuffer2(OutBuffer buf, HdrGenState* hgs, MOD mod) { - assert(false); + if (mod != this.mod) + { + toCBuffer3(buf, hgs, mod); + return; + } + next.toCBuffer2(buf, hgs, this.mod); + buf.printf("[%s]", dim.toChars()); } Expression dotExp(Scope sc, Expression e, Identifier ident)