diff dmd/StringExp.d @ 93:df6d0f967680

implemented a whole bunch of methods to make phobos 2.035 compile and some additional ones I came across
author Trass3r
date Mon, 30 Aug 2010 22:50:30 +0200
parents 2e2a5c3f943a
children 5c859d5fbe27
line wrap: on
line diff
--- a/dmd/StringExp.d	Mon Aug 30 23:43:38 2010 +0400
+++ b/dmd/StringExp.d	Mon Aug 30 22:50:30 2010 +0200
@@ -637,7 +637,21 @@
 
 	override bool isBool(bool result)
 	{
-		assert(false);
+		return result ? true : false;
+	}
+
+version(DMDV2)
+{
+	override bool isLvalue()
+	{
+		return true;
+	}
+}
+
+	override Expression toLvalue(Scope sc, Expression e)
+	{
+		// writef("StringExp::toLvalue(%s)\n", toChars());
+		return this;
 	}
 
 	uint charAt(size_t i)