Re: C vs C++ for GTK




On Thu, 2007-12-13 at 22:06 +0100, Dan H wrote:
On Thu, 13 Dec 2007 11:40:41 -0700
Michael L Torrie <torriem chem byu edu> wrote:

Dan H wrote:

Isn't "smart pointers" just a reference counting scheme?

Yup.  Poor-man's garbage collection.  Turns out to be just the
ticket, though, for GUI programming.  Because of that, I'd put
productivity with GTKmm to be right up there with PyGTK or GTK#.

Reference counting is already a feature of the underlying GTK+/C layer. As always somewhat more verbose 
than C++.

The difference is that GTK+ in C requires you to think about it. And you
will make a mistake that will be difficult to debug. But with gtkmm you
don't need to think about it and you can't get it wrong. (There are
plenty of other things you can get wrong instead, in any language.)

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com




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