Listing 1:
Nested function with access to its lexically enclosing stack frame variables.
int Foo(int x) { int bar(int y) { return x + y; } return bar(3) * x; }