[Mono-list] Re: Const weirdness, revisited...

Robert Jordan robertj@gmx.net
Sat, 19 Feb 2005 14:37:38 +0100


Tom,

> My question being, however: when I initialize a const int to a certain 
> int value, and later on reassign it, Mono merrily tells me that 
> compilation succeeded. Like so:
> 
> const int meh = 5;
> meh = 10;
> 
> Kind of unexpected... :-/ The only post mentioning something at least 
> quite similar, is that of Jonathan Stowe in April 2002 [1]. Apart from 
> that, I can't seem to find anything related to Mono not being capable 
> of pointing me to the most basic of mistakes.
> 
> Could someone give me a clue? Or is it supposed to be that way? I didn't 
> find any bugs either, but that might be just me...

That's already fixed in SVN.

bye
Rob