diff 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
line wrap: on
line diff
--- a/dmd/mtype.c	Sat Dec 13 06:48:00 2008 +0100
+++ b/dmd/mtype.c	Sat Dec 13 13:15:31 2008 +0100
@@ -2485,7 +2485,7 @@
 
 int TypeAArray::isZeroInit()
 {
-    return 1;
+    return TRUE;
 }
 
 int TypeAArray::checkBoolean()
@@ -3994,6 +3994,12 @@
 	    goto Lfwd;
 	e = defaultInit(loc);
     }
+    else if (ident == Id::stringof)
+    {	char *s = toChars();
+	e = new StringExp(loc, s, strlen(s), 'c');
+	Scope sc;
+	e = e->semantic(&sc);
+    }
     else
     {
 	if (!sym->memtype)