comparison dmd/VarExp.d @ 191:52188e7e3fb5

Fixed deprecated features, now compiles with DMD2.058 Also changed Array allocation policy: Now doesn't reallocate but malloc's, followed by a memcpy (no free). (this fixes a crash while compiling druntime. Same bug in dmd)
author korDen@korDen-pc
date Sun, 25 Mar 2012 03:11:12 +0400
parents b0d41ff5e0df
children
comparison
equal deleted inserted replaced
190:80660782bffe 191:52188e7e3fb5
232 } 232 }
233 } 233 }
234 234
235 version (DMDV2) 235 version (DMDV2)
236 { 236 {
237 override int isLvalue() 237 override bool isLvalue()
238 { 238 {
239 if (var.storage_class & STClazy) 239 if (var.storage_class & STClazy)
240 return 0; 240 return false;
241 return 1; 241 return true;
242 } 242 }
243 } 243 }
244 override Expression toLvalue(Scope sc, Expression e) 244 override Expression toLvalue(Scope sc, Expression e)
245 { 245 {
246 static if (false) { 246 static if (false) {