paragui-dev
[Top][All Lists]
Advanced

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

RE: [paragui-dev] SigC Namespace usage


From: Christian Jensen
Subject: RE: [paragui-dev] SigC Namespace usage
Date: Wed, 27 Oct 2004 10:01:38 -0700

Personally, I prefer only namespaces that I define to be available on
the top level.

I = The end user of a toolkit

So in short... I agree. 

-----Original Message-----
From: address@hidden
[mailto:address@hidden
On Behalf Of Martin Bickel
Sent: Wednesday, October 27, 2004 9:54 AM
To: address@hidden
Subject: [paragui-dev] SigC Namespace usage

Hi,

in the file pgsignals.h there's a "using namespace SigC" . While this is
convenient because it reduces typing and makes for a less cluttered
header file, it also has a big disadvantage: since pgsignals.h is a
header file which is public and included in all applications that make
use of Paragui, it forces these applications to also have the SigC++
Symbols in the public namespace. Which can be quite annoying because
SigC++ defines classes like "Object" that have a quite generic name.
In my opinion, the application developer should decide which namespaces
to use and which not, so I suggest removing this namespace usage from
the public header file.

I've prepared a patch which does exactly this.

Regards,
Martin 






reply via email to

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