Shane Jensen wrote:
Why does this compile? Isn't a large part of this code unreachable at compile time? For example the first else if statement, which cannot ever be reached.
The unreachable code rules, are relaxed for if-else blocks, in order to allow for conditional compilation. This is needed as using debugging flags, to activate/deactivate code, is a common practice.
Henry