imacarthur wrote: > I like the *idea* of fltk2 and its API, but the actuality of it has > always been a disappointment to me. The API is more or less OK, > although I remain unconvinced of the merit of changing the widget > origin conventions, but the code itself seems to have fallen into > disrepair, and not kept up with the Good Stuff that was added to 1.1 > and 1.3.
Once upon a time, when I started a project years ago, FLTK was recommended to me to use as a GUI, since I wanted to have cross-platform compatibility. At the time I chose to use FLTK2 because of the tree browser and the use of namespaces. I also liked the coordinate system better (relative vs. absolute) of FLTK2 though I didn't really know about this difference until I recoded for FLTK1. My application under FLTK2 was stable under Linux, and mostly stable under Windows (using Gnuwin32 tools and the mingw compiler). But it never worked well under OSX. So in order to get something more stable I had to port back to FLTK1. I wrote a very simple compatibility layer so I could continue to use the fltk::function syntax instead of Fl_function. This solved about 70% of my code differences between FLTK1 and FLTK2, with coordinate differences making up the rest. For a while I tried to maintain compatibility with both but now I only code for FLTK1. > And the more we use C++, the less convinced I become about the way > namespaces are used in C++ : There seems to be a widespread habit of > just sticking a "using namespace xyz" at the head of every file and > thereby negating almost all the value that namespaces are supposed to > bring. So what's the point? I think that "using" a namespace is a poor practice. I *always* use the fully-qualified namespace name on all variables and functions that I call, just so I can figure out where things are defined, even on things in the "std" namespace. At times I will even use "this->" within my own class methods to disambiguate things. I favor getting rid of FLTK2 completely and focusing on one version, whether it be 3.0, 1.3, 1.4, whatever. I also still favor the use of namespaces; it's just cleaner than FL_ or especially Fl_ prefixes on everything (Fl looks a lot like F1), and easier to type. Oh, and I also favor getting rid of the extra FL symlinks. People should fix their code if this change breaks compilation. -Eric _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
