dotgnu-general
[Top][All Lists]
Advanced

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

Re: [DotGNU]Preferred namespace cscc option


From: Gopal V
Subject: Re: [DotGNU]Preferred namespace cscc option
Date: Sat, 27 Jul 2002 06:41:07 +0530
User-agent: Mutt/1.2.5i

If memory serves me right, Rhys Weatherley wrote:
> > 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?

IMHO that is a much better idea to have a differently named class.

But this has the slight issue that we cannot simply change the 
"using System.Net" to "using DotGNU.Net" to access our features .
But I guess a s/Socket(/Enhanced&/g won't be much of an issue ;-)

Gopal
-- 
The difference between insanity and genius is measured by success


reply via email to

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