[Top][All Lists]

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

Re: [DotGNU]Preferred namespace cscc option

From: Rhys Weatherley
Subject: Re: [DotGNU]Preferred namespace cscc option
Date: Sat, 27 Jul 2002 08:59:38 +1000

Peter Minten wrote:

> would it be possible to add an option to cscc telling it to prefer a certain
> namespace in cases of ambiguousness?

Doing so would technically be a violation of the C# specification,
which says that ambiguities must be reported.  If I added such
an option, your code would no longer compile on other C# compilers.

> The problem I have is this: if a programmer
> want's to use DG-Base sockets he/she must use DotGNU.Net.Sockets for the 
> Socket
> class and System.Net.Sockets for enums like AddressFamily. If he/she would 
> type
> Socket x = new Socket(); the compiler would give an error because it can't 
> tell
> if DotGNU.Net.Sockets.Socket or System.Net.Sockets.Socket is meant.

Why not give your Socket class a different name?  EnhancedSocket?



reply via email to

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