[Kde-imaging] NameSpace wrapper in KameraKlient removed !!!

Jesper K. Pedersen blackie at blackie.dk
Mon Sep 6 15:26:31 CEST 2004


On Monday 06 September 2004 15:22, Aurélien Gâteau wrote:
| Le vendredi 3 Septembre 2004 14:48, Caulier Gilles a écrit :
| > Hi all,
| >
| > I have recently checked the last commits by Laurent (A patch from Tudor
| > calin) concerning this KIPI plugin. I have see that the namespace
| > KIPIKameraKlientPlugin provide by me in _all_ cpp/h files for this plugin
| > have been removed.
| >
| > This is very _Dangerous_. We must provide an independant namespace
| > wrapper for each plugin in all source code.
| >
| > I have hacked more than one plugin in the past because none namespace
| > have been used in the digikamplugins implementation. If we don't use the
| > a namespace, we have a large risk to have some memory conflics between
| > the plugin !!!
|
| I don't see why we need namespace for plugins. Each plugin gets his own .so
| file and can be considered like an application. Can you explain why are
| namespaces necessary?
When the files are loaded, they will clash, as the names are used to form the 
mangling of the object.

IIRC Renchi had some problems with a plugin clashing with a class from the 
app.


More information about the Kde-imaging mailing list