Clean up text handling a bit:
- Rename IO.write -> IO.print. - Make IO.write not print a newline. - Support \u Unicode escapes in strings.
This commit is contained in:
@@ -4,15 +4,15 @@ var g = null
|
||||
{
|
||||
var local = "local"
|
||||
f = fn {
|
||||
IO.write(local)
|
||||
IO.print(local)
|
||||
local = "after f"
|
||||
IO.write(local)
|
||||
IO.print(local)
|
||||
}
|
||||
|
||||
g = fn {
|
||||
IO.write(local)
|
||||
IO.print(local)
|
||||
local = "after g"
|
||||
IO.write(local)
|
||||
IO.print(local)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user