diff dmd/IndexExp.d @ 130:60bb0fe4563e

dmdfe 2.037 first main iteration
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Thu, 09 Sep 2010 22:51:44 +0100
parents 010eb8f0e18d
children e3afd1303184
line wrap: on
line diff
--- a/dmd/IndexExp.d	Sun Sep 05 15:32:22 2010 +0400
+++ b/dmd/IndexExp.d	Thu Sep 09 22:51:44 2010 +0100
@@ -25,7 +25,7 @@
 import dmd.WANT;
 import dmd.TupleExp;
 import dmd.TypeTuple;
-import dmd.Argument;
+import dmd.Parameter;
 import dmd.TypeExp;
 import dmd.VarExp;
 import dmd.STC;
@@ -159,7 +159,7 @@
 				else if (e1.op == TOKtype)
 				{
 					tup = cast(TypeTuple)t1;
-					length = Argument.dim(tup.arguments);
+					length = Parameter.dim(tup.arguments);
 				}
 				else
 					assert(0);
@@ -169,7 +169,7 @@
 					if (e1.op == TOKtuple)
 						e = te.exps[cast(size_t)index];
 					else
-						e = new TypeExp(e1.loc, Argument.getNth(tup.arguments, cast(size_t)index).type);
+						e = new TypeExp(e1.loc, Parameter.getNth(tup.arguments, cast(size_t)index).type);
 				}
 				else
 				{
@@ -383,7 +383,7 @@
 			ep = el_params(n2, valuesize, keyti, n1, null);
 			e = el_bin(OPcall, TYnptr, el_var(s), ep);
 
-			if (global.params.useArrayBounds)
+			if (irs.arrayBoundsCheck())
 			{
 				elem* ea;
 
@@ -406,7 +406,7 @@
 			elem* einit = resolveLengthVar(lengthVar, &n1, t1);
 			elem* n2 = e2.toElem(irs);
 
-			if (global.params.useArrayBounds)
+			if (irs.arrayBoundsCheck())
 			{
 				elem* elength;
 				elem* n2x;