comparison dmd/mtype.c @ 846:bc982f1ad106

Merged DMD 1.037 frontend
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Sat, 13 Dec 2008 13:15:31 +0100
parents 43178a913a28
children aa953cc960b6
comparison
equal deleted inserted replaced
845:d128381e086e 846:bc982f1ad106
2483 return e; 2483 return e;
2484 } 2484 }
2485 2485
2486 int TypeAArray::isZeroInit() 2486 int TypeAArray::isZeroInit()
2487 { 2487 {
2488 return 1; 2488 return TRUE;
2489 } 2489 }
2490 2490
2491 int TypeAArray::checkBoolean() 2491 int TypeAArray::checkBoolean()
2492 { 2492 {
2493 return TRUE; 2493 return TRUE;
3992 { 3992 {
3993 if (!sym->symtab) 3993 if (!sym->symtab)
3994 goto Lfwd; 3994 goto Lfwd;
3995 e = defaultInit(loc); 3995 e = defaultInit(loc);
3996 } 3996 }
3997 else if (ident == Id::stringof)
3998 { char *s = toChars();
3999 e = new StringExp(loc, s, strlen(s), 'c');
4000 Scope sc;
4001 e = e->semantic(&sc);
4002 }
3997 else 4003 else
3998 { 4004 {
3999 if (!sym->memtype) 4005 if (!sym->memtype)
4000 goto Lfwd; 4006 goto Lfwd;
4001 e = sym->memtype->getProperty(loc, ident); 4007 e = sym->memtype->getProperty(loc, ident);