Not necessarily a bad thing
Not necessarily a bad thing
Posted Jul 31, 2004 12:49 UTC (Sat) by rjw (guest, #10415)In reply to: Not necessarily a bad thing by AnswerGuy
Parent article: Connect KDE apps using D-BUS (IBM developerWorks)
Except that D-BUS is *not* based on glib.
Because of the boneheaded decision to shove an object system into glib, rather than a separate library (it was understandable to take it out of gtk+), a lot of people (with their own object system) don't like it, and have decided that glib as a whole is a gnome conspiracy to ruin the purity of C++. Another strike against glib is the insistence on having typedefs for even the most basic types eg: (void*)-> gpointer . This makes it a horrific pain to lift glib-using code into a non glib context. Surely they can depend on standard C types by now?
All this makes it impractical to have glib as a dependency ( especially for system level stuff). Dbus contains copies of all the glib bits it uses.
However, it does have both GObject/glib and qt integration - allowing you to bridge it to either object system.
So:
* data structures in C : fine
* object system in in C : pretty distasteful to C++ purists
Even funnier than this is that the main opponents to GObject, KDE, don't use their languages supplied string and container classes : they have their own stuff from qt. Luckily the containers are now stl compliant..
I'm just waiting till someone creates an implementation of libc that implements everything using the stl underneath... that'll be the flamewar to end them all.
