[Mono-list] Uninitialized variable not found by mcs

Miguel de Icaza miguel@ximian.com
10 May 2002 11:48:59 -0400


Hello!

> I am starting to learn C# using mono. The attached example taken from 
> "Programming C#" does not produce a compiler errormessage saying that the 
> variable myInt is used uninitialized. It compiles cleanly instead (used 
> mcs v0.11). Furthermore the uninitialized variable was not implicitly 
> initialized to 0 (as good C and C++ compilers do). I don't know, if this 
> is in error as well. The output from the run was

It is a known bug.  That is one of the major features missing, there is
a bug report filled in bugzilla for this (data flow analysis is not
done)

Miguel.