Tagged Questions
5
votes
4answers
746 views
When would dynamic scoping be useful?
With dynamic scoping, a callee can access the variables of its caller. Pseudo C code:
void foo()
{
print(x);
}
void bar()
{
int x = 42;
foo();
}
Since I have never programmed in a ...