Mercurial > projects > ddmd
diff dmd/Global.d @ 177:1475fd394c9e
bug fixes
author | korDen |
---|---|
date | Sun, 10 Oct 2010 10:38:55 +0400 |
parents | fa9a71a9f5a8 |
children | e3afd1303184 |
line wrap: on
line diff
--- a/dmd/Global.d Sun Oct 10 05:22:45 2010 +0400 +++ b/dmd/Global.d Sun Oct 10 10:38:55 2010 +0400 @@ -201,15 +201,6 @@ sarray = new Array(); - scope Scope sc = new Scope(); - - tftohash = new TypeFunction(null, Type.thash_t, 0, LINK.LINKd); - tftohash.mod = MOD.MODconst; - tftohash = cast(TypeFunction)tftohash.semantic(Loc(0), sc); - - tftostring = new TypeFunction(null, Type.tchar.invariantOf().arrayOf(), 0, LINK.LINKd); - tftostring = cast(TypeFunction)tftostring.semantic(Loc(0), sc); - obj_symbols_towrite = new Array(); ectorgates = new Array(); @@ -220,6 +211,15 @@ void initClasssym() { scc = fake_classsym(Id.ClassInfo); + + scope Scope sc = new Scope(); + + tftohash = new TypeFunction(null, Type.thash_t, 0, LINK.LINKd); + tftohash.mod = MOD.MODconst; + tftohash = cast(TypeFunction)tftohash.semantic(Loc(0), sc); + + tftostring = new TypeFunction(null, Type.tchar.invariantOf().arrayOf(), 0, LINK.LINKd); + tftostring = cast(TypeFunction)tftostring.semantic(Loc(0), sc); } void init_time()