The message below is being cross-posted from the LogoForum. Please
reply here at comp.lang.logo and it will be cross-posted back to the
LogoForum. The original author of this message is
taobert@[EMAIL PROTECTED]
Logo World,
Just a question for Andreas (or for aUCBLogo users):
Why the lexical scoping of aUCBLogo behaves differently between
interactive mode and program mode ?
Here are examples:
--- Direct mode (copy of my aUCBLogo console)
; Welcome to aUCBLogo version 4.7
x = 1
be f
output x
end
be g x
output f
end
f
1 ;-)
g 0
0 ;-) logically it should be 1
--- Program mode
be f
output x
end
be g x
output f
end
to test_scope
x = 1
print f
print g 0
end
1
1
;-) results are correct
Regards,
Bertrand
__._,_.___
LogoForum messages are archived at:
http://groups.yahoo.com/group/LogoForum