Joel C. Salomon wrote:
Then the compiler is giving the wrong warning; it ought only to warn that the variable is used before it has been set.
That doesn't cover all the cases, nor does it do anything for tracking where a null might come from when going between modules.
And yes, it does require full blown data flow analysis.
