diff string.rhope @ 136:fc3815b7462f

Javascript backend now produces working code for some simple examples, still more of the standard lib that needs to be ported.
author Mike Pavone <pavone@retrodev.com>
date Sun, 14 Nov 2010 23:07:55 -0500
parents 0a4682be2db2
children d86df83402f3
line wrap: on
line diff
--- a/string.rhope	Sun Nov 14 03:09:49 2010 -0500
+++ b/string.rhope	Sun Nov 14 23:07:55 2010 -0500
@@ -94,6 +94,11 @@
 	out <- [[Build[String()]]Buffer <<[in]]Length <<[len]
 }
 
+String@Empty Array[in:out(String)]
+{
+	out <- ""
+}
+
 Print@String[string:out]
 {	
 	//TODO: Sanitize string (remove terminal escapes and replace invalid UTF)