Re: C vs C++ for GTK



On Wednesday 12 December 2007 15:19, Dan H wrote:
Jon Harrop <jon ffconsultancy com> wrote:
My recommendation is to choose a garbage collected language for GUI
work as it makes everything so much easier. Lots of GCd languages
have GTK bindings these days.

Just for the record, garbage collection (which is a good idea) doesn't have
to be a feature of the language itself (it isn't for C++, by the way). Just
build and link your C (or C++) program with libgc (the renowned Boehm
garbage collector) and you're fine.

I would strongly recommend choosing a language that provides accurate GC 
rather than using something like Boehm's GC with C/C++. The main reason is 
that using Boehm on C/C++ code that wasn't designed for Boehm can break 
working code (see, for example, numerical recipies). Another reason is that 
languages designed to be GCd will be a lot faster.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/products/?e



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