[Mono-list] mcs won't allow implementation of interfaces with static methods

Jeroen Frijters jeroen@sumatra.nl
Tue, 20 Aug 2002 10:08:29 +0200


This is incorrect and also note that that isn't part of the spec, it is
"informative text only".

Regards,
Jeroen

> -----Original Message-----
> From: mono-list-admin@ximian.com 
> [mailto:mono-list-admin@ximian.com] On Behalf Of Holger Arnold
> Sent: Monday, August 19, 2002 21:02
> To: mono-list@ximian.com
> Subject: Re: [Mono-list] mcs won't allow implementation of 
> interfaces with static methods
> 
> 
> Hello,
> 
> > > static methods are not allowed on interfaces
> >
> > This is not allowed in C# but actually allowed in metadata.
> > See Part II, 11 Semantics of Interfaces
> > "Interfaces may have static fields and methods, but they 
> shall not have
> > instance fields or methods."
> 
> But, rule 193 in Part II, 21.24 Method Table says: 
> "Interfaces can only own 
> virtual methods (not static or instance methods). So, if this 
> method is owned 
> by an interface, Flags.Static shall be clear [ERROR]".
> 
> Holger
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>