comparison gen/typinf.cpp @ 763:9a9f403ab399

D2 changes! Removed druntime from the repository again.. Sorry :/ Updated the druntime port a bit, now requires druntime from trunk. Added info in runtime/README on how to get druntime from trunk. Added patch to add LDC support to druntime. Removed some debug logging from D2 builds. Fixed broken typeinfo for const/invariant in D2.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 12 Nov 2008 07:22:05 +0100
parents fa306ca8843b
children 8e7d4ddab66d
comparison
equal deleted inserted replaced
762:d7aae6f09754 763:9a9f403ab399
228 return 0; 228 return 0;
229 } 229 }
230 230
231 int TypeBasic::builtinTypeInfo() 231 int TypeBasic::builtinTypeInfo()
232 { 232 {
233 return 1; 233 return !mod;
234 } 234 }
235 235
236 int TypeDArray::builtinTypeInfo() 236 int TypeDArray::builtinTypeInfo()
237 { 237 {
238 #if DMDV2
239 return !mod && next->isTypeBasic() != NULL && !next->mod;
240 #else
238 return next->isTypeBasic() != NULL; 241 return next->isTypeBasic() != NULL;
242 #endif
239 } 243 }
240 244
241 /* ========================================================================= */ 245 /* ========================================================================= */
242 246
243 /*************************************** 247 /***************************************