Re:Dynamic Scoping in C++
by chrisseaton on Monday September 21, 2020 @04:54PM
(#24548354)
> No, that's how it is implemented by a compiler
What do you think the call stack is?
The only difference between what you're thinking of and what I'm thinking of is you're row-based and I'm columnar-based. Why is that such an important difference?
You really are confusing the implementation of dynamic scoping with what dynamic scoping is: the entire point of having that term at all is to describe how the variables are scoped not how they are set. If you have to type the name of the variable into the global scope, then obviously it isn't dynamically scoped.