[MLton-commit] r4156

Stephen Weeks MLton@mlton.org
Fri, 4 Nov 2005 14:03:16 -0800


Removed automatic SML-escaping of strings when laying them out.  It's
now up to clients if they want the escaping.  This fixed a
long-standing minor bug in MLton, in which error messages referring to
identifiers like \\ were displayed escaped (like \\\\).  Now they are
displayed correctly.


----------------------------------------------------------------------

U   mlton/trunk/lib/mlton/basic/string1.sml

----------------------------------------------------------------------

Modified: mlton/trunk/lib/mlton/basic/string1.sml
===================================================================
--- mlton/trunk/lib/mlton/basic/string1.sml	2005-11-04 21:57:59 UTC (rev 4155)
+++ mlton/trunk/lib/mlton/basic/string1.sml	2005-11-04 22:03:15 UTC (rev 4156)
@@ -19,7 +19,7 @@
 
 val last = String0.last
          
-val layout = Layout.str o escapeSML
+val layout = Layout.str
 
 fun forall (s, f) =
    let