tvl-depot/users/tazjin/rlox/examples/scope.lox

20 lines
236 B
Text
Raw Normal View History

var a = "global a";
var b = "global b";
var c = "global c";
{
var a = "outer a";
var b = "outer b";
{
var a = "inner a";
print a;
print b;
print c;
}
print a;
print b;
print c;
}
print a;
print b;
print c;