[Mono-list] Help needed: C# SimpleNames and MemberAccess
Dwivedi , Ajay Kumar
AjayKumar.Dwivedi@dresdner-bank.com
Mon, 24 Dec 2001 07:47:21 -0000
Hi all,
> My reading of Simple Names says that the `Location' in Location.Null
>matches an instance member, so the result should be this.Location. Then
>the Member Access on Null would catch the error.
C# forbids accessing a static member through an instance variable.
Since Location is the name for both the Class and instace variable, it
makes sense for Location to match the Class when accessing a static member,
and the instance variable for instance members.
We would need this "feature" in mono too, since otherwise the
instance
variable will override the name of the Class, and it would not be possible
to access any static members of that Class (Unless it is fully qualified, if
possible).
Regards,
Ajay