Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Logo > [LogoForum] aUC...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 1568 of 1588
Post > Topic >>

[LogoForum] aUCBLogo's lexical scope

by "John St. Clair" <john.stclair@[EMAIL PROTECTED] > Feb 15, 2008 at 01:36 PM

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




 2 Posts in Topic:
[LogoForum] aUCBLogo's lexical scope
"John St. Clair"  2008-02-15 13:36:43 
Re: [LogoForum] aUCBLogo's lexical scope
"John St. Clair"  2008-02-16 16:42:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 5:52:30 CDT 2008.