Re: Finding the right mono version for ml-pnet?

Robert Jordan <[email protected]> Fri, 12 Jan 2007 19:05:33 +0100
Newsgroups gmane.comp.gnu.dotgnu.developer
Message-ID <[email protected]>
mboss wrote:
> 
> Hi Robert,
> I faced the same problem some time ago
> 
>> And, by the way, System.Security seems to be broken in current CVS:
> 
> ...... ->  this is the relevant error line:
>> Cryptography/ManagedProtection.cs:53: `static' cannot be used in this
>> context
>> *** Target `all' for project `System.Security' failed ***
>> *** Project `System.Security' build failed ***
>> ----------8<----------8<----------8<----------8<----------8<----------
>>
>> Any idea?
> 
>  the dotgnu compiler complains about the following construct in
> class
>  ./class/System.Security/Mono.Security.Cryptography/ManagedProtection.cs: ++ 
>  53         internal static class ManagedProtection {
> 
> I filed a bug report to the mono developers, and
> their answer was that  this statement is fully ECMA compliant.
> 
> My guess is that our compiler handles C# syntax in a more "pedantic"  way
>  than mono's one, but I do not know all of the nuances of C# syntax.

Mono's C# compiler is exposing some of the 2.0 language features
even in 1.0 mode and in the file above one of them ("static class")
is used w/out guarding it by conditional compilation.

Robert