13 Nov
2013
13 Nov
'13
4:53 p.m.
On 13-11-2013 16:38, Krzysztof KosiĆski wrote:
2013/11/8 Markus Engel <p637777@...1081...>:
I'd suggest using the same hierarchy in namespaces that is used for the directories. So when something is put in src/ui/widgets, then the code should be in the namespace Inkscape::UI::Widgets. That's how other languages handle this as well and I think that's not a bad idea. You may use a "using" in you cpp files, that's not a problem. And if you need to many of them, think of whether you can split up the file. If the code is cleanly separated into several layers, then there are not too many dependencies.
C++ is not Java.
Great reply, made me laugh :-) +1
-Johan