[Mono-list] Suggestion: warning "member variable not initialized"

Maurizio Colucci seguso.forever@tin.it
Sat, 7 Jun 2003 16:59:03 +0200

On Saturday 07 June 2003 16:03, Thong (Tum) Nguyen wrote:
> Members are implicitly initialized to 0 or null so they do have a
> meaning even if you don't explicitly initialize them...
> ^Tum
I see. :-P

So the semantics of readonly members is "members which are not
implicitly initialized, and must be explicitly initialized in the
constructor"... right?

So the C# semantics is itself error-prone, because implicit
initialization is error-prone.

Of course we cannot change the semantics! :-) On the other hand, my
suggestion as a warning might still be useful, maybe...