What's the 'NS' in NSApplication for? Some kind of Hungarian notation?
I'm not particularly fond of it...
-mental
On Tue, Feb 15, 2005 at 09:00:59PM -0500, MenTaLguY wrote:
What's the 'NS' in NSApplication for? Some kind of Hungarian notation?
I'm not particularly fond of it...
Me neither. It's an ugly (and temporary) hack-around to an issue I ran into Sunday.
I have several components that will be going into a namespace called Inkscape::Application. This includes a class called Application that will encapsulate some of the functionality currently in main.cpp and inkscape.*. This is what was described in the presentation I wrote Saturday.
However, in the existing codebase, there is a struct called Inkscape::Application. This struct has some members that will eventually be moved into the Application class.
Unfortunately, when I integrated the code, gcc got confused by the existance of both a _struct_ and a _namespace_ called the same thing. Lacking a better solution, I just stuck in the 'NS' (Namespace) to disambiguate so it'd compile.
I'm thinking that what I'll do is migrate the stuff from the Inkscape::Application structure into the class, and rewire things accordingly. Once that is done, I can safely remove the 'NS' prefix.
Bryce
On Tue, 2005-02-15 at 22:02, Bryce Harrington wrote:
I'm thinking that what I'll do is migrate the stuff from the Inkscape::Application structure into the class, and rewire things accordingly. Once that is done, I can safely remove the 'NS' prefix.
Unless you've already renamed it all in all the pending gtkmm code, it might be less work to rename Inkscape::Application (the class) to something temporarily (it's not used by name that many places) and keep the namespace as Inkscape::Application...
-mental
participants (2)
-
Bryce Harrington
-
MenTaLguY