The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Dynamic scoping
Replies: 3   Last Post: Feb 6, 2013 1:50 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Daniel Huber

Posts: 7
Registered: 6/16/10
Re: Dynamic scoping
Posted: Feb 6, 2013 1:50 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On Saturday, February 2, 2013 7:15:17 AM UTC+1, Daniel Huber wrote:
> Block is supposed to be a dynamic scoping construct. Therefore, in the following, "Print" should be an undefined function. But consider:

OOOPS, there was a typo, it should read: "Plus" should be an undefined function." not Print of course.
One more thing, "dynamic scoping" is well defined, it means: the value of a variable is temporariliy stored away and set to undefined until the current scope is left. This is although true for all calls made from the current scope.
Therefore, the above behaviour is a BUG!
cheers, Daniel

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.