comparison dmd/IndexExp.d @ 73:ef02e2e203c2

Updating to dmd2.033
author korDen
date Sat, 28 Aug 2010 19:42:41 +0400
parents 2e2a5c3f943a
children 43073c7c7769
comparison
equal deleted inserted replaced
72:2e2a5c3f943a 73:ef02e2e203c2
41 import dmd.backend.OPER; 41 import dmd.backend.OPER;
42 import dmd.backend.mTY; 42 import dmd.backend.mTY;
43 import dmd.backend.TYM; 43 import dmd.backend.TYM;
44 44
45 import core.stdc.string; 45 import core.stdc.string;
46 import core.stdc.stdio;
47
48 extern (C) extern void exit(int);
46 49
47 class IndexExp : BinExp 50 class IndexExp : BinExp
48 { 51 {
49 VarDeclaration lengthVar; 52 VarDeclaration lengthVar;
50 int modifiable = 0; // assume it is an rvalue 53 int modifiable = 0; // assume it is an rvalue
145 ulong index = e2.toUInteger(); 148 ulong index = e2.toUInteger();
146 size_t length; 149 size_t length;
147 TupleExp te; 150 TupleExp te;
148 TypeTuple tup; 151 TypeTuple tup;
149 152
153 printf("e1.op: %d\n", e1.op);
154 exit(-1);
155
150 if (e1.op == TOKtuple) 156 if (e1.op == TOKtuple)
151 { 157 {
152 te = cast(TupleExp)e1; 158 te = cast(TupleExp)e1;
153 length = te.exps.dim; 159 length = te.exps.dim;
154 } 160 }