On 2011-09-05, at 10:02 AM, Steve Graham wrote:
I've noticed that documents which say that Scheme is lexically scoped. Although I've tried reading up on the concept, I'm not sure that I understand it. Can someone help?
Thanks, Steve
If X is declared in some form (e.g. a let), then it is only "visible" in the body of that form (unless it is declared at a deeper level). It is "lexical" because the concept of "nesting" is purely textual (based on the source code only, not the run-time behaviour of the program).
Marc