Mercurial > projects > dang
diff ast/Exp.d @ 80:682e20aa224f new_gen
Pointers working now - big YAY
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Fri, 02 May 2008 17:33:50 +0200 |
parents | 81813366ef92 |
children | 110c7e1c4ca2 |
line wrap: on
line diff
--- a/ast/Exp.d Fri May 02 16:39:04 2008 +0200 +++ b/ast/Exp.d Fri May 02 17:33:50 2008 +0200 @@ -238,7 +238,10 @@ return this; } - override DType type() { return exp.type(); } + override DType type() + { + return exp.type().asPointer.pointerOf; + } public Exp exp; } @@ -361,15 +364,10 @@ override DType type() { - if (myType !is null) - return myType; - myType = new DPointer(pointerOf.type); - return myType; + return pointerOf.type.getPointerTo; } Identifier pointerOf; - - private DType myType; } class ArrayIdentifier : Identifier