From my recitation class -
In free variables (in function activation):
Static scoping: free variables are evaluated in the context of the defining occurrence of the function . include many you know: ML, Java, C++.
Dynamic scoping: free variables in the function body are evaluated in the context of the function call
- Static languages: Common Include many you know: ML, Java, C++ Advantages modularity easier variable access by the compiler
Can you give an example which describes why does C++ regards as Static languages ?