Re: C vs C++ for GTK




Le dimanche 25 novembre 2007 Ã 10:47 +0100, Tomas Carnecky a Ãcrit :
Allin Cottrell wrote:
One reason for going with C is that the great bulk of free 
software is in C, including GLib and GTK.  The main exception 
is Qt, the basis for KDE.  So if you might want to get into KDE 
programming, maybe learning C++ would be better.

You can use gtk in C++, there's gtkmm which is a thin wrapper on top of
gtk! Many good gtk apps are written in gtk. So actually when using gtk
you are less restricted in your programing language choice than with Qt.

I wouldn't call GTKmm thin. It's smart and changes the way you can use
GTK+. The best example is treeview: in C or python, they are not
typesafe, i.e. you can get runtime errors because you inserted the
wrong datatype in the wrong column. Gtkmm provides typesafe treeview at
compile type. This is amazing.
-- 
BenoÃt Dejean
GNOME http://www.gnomefr.org/
LibGTop http://directory.fsf.org/libgtop.html


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]