diff dmd/expression.c @ 468:45a67b6f1310

Removed the 'needsstorage' thing from Dsymbol. Arguments are not always given storage when applicable. This is not longer treat specially in this regard. Code for accessing nested variables and contexts rewritten. Probably more. Fairly well tested.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 04 Aug 2008 02:59:34 +0200
parents 1c65b5477eaa
children e19e20103119
line wrap: on
line diff
--- a/dmd/expression.c	Sun Aug 03 16:59:28 2008 +0200
+++ b/dmd/expression.c	Mon Aug 04 02:59:34 2008 +0200
@@ -3628,7 +3628,6 @@
     if (v)
     {
     v->checkNestedReference(sc, loc);
-    v->needsStorage = true;
     }
     return this;
 }
@@ -3777,7 +3776,6 @@
     if (v && v->canassign == 0 &&
         (var->isConst() || (global.params.Dversion > 1 && var->isFinal())))
 	error("cannot modify final variable '%s'", var->toChars());
-    v->needsStorage = true;
 
     if (var->isCtorinit())
     {	// It's only modifiable if inside the right constructor
@@ -5991,10 +5989,6 @@
 		e = e->semantic(sc);
 		return e;
 	    }
-        else if (v)
-        {
-        v->needsStorage = true;
-        }
 	}
 	else if (e1->op == TOKarray)
 	{