[PATCH] KDOM/Namespace.h

Frans Englich frans.englich at telia.com
Sat Feb 19 17:30:58 GMT 2005


Hello,

As more XML implementations starts to pop up, it requires members for holding 
their namespaces. One approach is what is the current trend: putting the 
namespace at the implementation.

However, I find that inconsistent(or rather, could lead to inconsistency), and 
I neither see namespaces as bound to a certain functionality, often code 
mixes different namespaces. That's why I would like to put all namespaces in 
one, consistent, and centralized place, which the attached patch does, 
similarly to some Java and Python libraries.

I have a C++ question too. Assuming it is of no interest to use the classic 
abilities of a class(instantiation, function members, etc), why couldn't the 
Namespace class instead be a namespace(e.g a namespace inside namespace KDOM) 
as the attached file is? I don't know what a C++ namespace becomes in the 
resulting object file, but I suspect simply an altered symbol name. Perhaps 
whether a namespace or a class should be used to house namespace members is a 
matter of performance -- feel free to enlighten me.


Cheers,

		Frans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Namespace.h
Type: text/x-c++hdr
Size: 2775 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050219/93dcae98/attachment.h>


More information about the kfm-devel mailing list