dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] [Bug #2765] CSCC - getting mixed up with namspaces


From: Rhys Weatherley
Subject: Re: [Pnet-developers] [Bug #2765] CSCC - getting mixed up with namspaces
Date: Thu, 20 Mar 2003 09:10:33 +1000
User-agent: KMail/1.4.3

On Thursday 20 March 2003 08:10 am, James Michael DuPont wrote:

> How can I add address class 1 as the return type of Class3.Member1
> there must be a way to do that?

The use of Test is ambiguous in your test case.  It could refer to either 
"Test" or "Test2.Test".  Because the class is encapsulated by "Test2.Test", 
the compiler chooses that over anything in the "using" clauses.  The usual 
way to disambiguate is with an alias.  e.g. "using Testx = Test".

> The code in SharpDevelop has this behaviour exactly.
> Many classes have similar namespaces trees with different roots.

Do you have an example from SharpDevelop to show?

Cheers,

Rhys.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]