Mercurial > projects > ddmd
view dmd/UAddExp.d @ 165:25ede4f66bda
Temporarily disabled GC (again) because phobos fails to compile with it (looks like some ObjSymbols are being falsely collected, see Library.d:666)
Getting rid of global state (i.e global and static variables) to allow running concurrent compilation
author | korDen |
---|---|
date | Thu, 30 Sep 2010 10:04:32 +0400 |
parents | 9e39c7de8438 |
children | e3afd1303184 |
line wrap: on
line source
module dmd.UAddExp; import dmd.common; import dmd.Expression; import dmd.Identifier; import dmd.UnaExp; import dmd.Loc; import dmd.Scope; import dmd.TOK; import dmd.Id; class UAddExp : UnaExp { this(Loc loc, Expression e) { super(loc, TOK.TOKuadd, this.sizeof, e); } override Expression semantic(Scope sc) { Expression e; version (LOGSEMANTIC) { printf("UAddExp.semantic('%s')\n", toChars()); } assert(!type); UnaExp.semantic(sc); e1 = resolveProperties(sc, e1); e = op_overload(sc); if (e) return e; e1.checkNoBool(); e1.checkArithmetic(); return e1; } override Identifier opId() { return Id.uadd; } }