Make IO a static class instead of a singleton.
This commit is contained in:
@@ -4,15 +4,15 @@ var g = null
|
||||
{
|
||||
var local = "local"
|
||||
f = fn {
|
||||
io.write(local)
|
||||
IO.write(local)
|
||||
local = "after f"
|
||||
io.write(local)
|
||||
IO.write(local)
|
||||
}
|
||||
|
||||
g = fn {
|
||||
io.write(local)
|
||||
IO.write(local)
|
||||
local = "after g"
|
||||
io.write(local)
|
||||
IO.write(local)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user