[Mono-dev] "fixed" as modifier

Miguel de Icaza miguel at ximian.com
Mon Jul 24 11:54:03 EDT 2006


Hello,

> Similar code is also found in mcs/tests/test-466.cs, and both were written by 
> Marek Safar, whom I am cc'ing on this. (g)mcs is successfully compiling this.
> But the "fixed" keyword is only specified as part of the fixed statement, not 
> as variable modifier. (Both in the C# 1.0 and 2.0 specs.)
> So, seen from an ECMA point of view, this code is invalid.
> 
> Should this be compilable even if it's not specified? Is it a mono bug?
> Can someone tell me more about this?

The ECMA spec sometimes lags behind new features in the language, this
being one of them.

Miguel



More information about the Mono-devel-list mailing list