lordasgart.github.io

Compilers: Principles, Techniques, and Tools

For the full repository with samples have a look at GitHub.

1.6.3 Static Scope and Block Structure

Working on Chapter 1.6.8 Exercies for Section 1.6 I decided to try the given examples in C# and C++, because I already thought while reading this chapter, that the given sample of Fig. 1.13(a) would not be compilable with the C# compiler.

Indeed the C# compiler throws Compiler Error CS0136 when trying to compile any code in the given block structure.

TODO: Insert screenshots!

See Original.cs for this try.