KWIG Qt->Gtk porting layer and merging main loops.

Alexander Neundorf neundorf at kde.org
Fri Oct 29 22:56:39 EEST 2004


On Friday 29 October 2004 19:03, you wrote:
> Alexander Neundorf wrote:
> >>How is a C program supposed to use C++ STL classes?

By writing a C binding ;-)

> > Why shouldn't a C++ developer use STL ?
> > (I can also ask funny questions).
>
> A library exposes a C interface. The API makes use of glib's linked list
> data structures etc. You find that unacceptable because you prefer C++
> STL data types. So, if the library exposes a C++-style API instead
> (which makes uses of STL), the C programs can't use that library
> anymore. How do you want to get around that problem, other than
> accepting the pure C API?

Not at all. C programs can use glib. C++ programs can use C++ libs. There's no 
need to define glib as a standard infrastructure which should be used by 
everybody. If an application links to glib, perfectly ok.

Bye
Alex
-- 
Work: alexander.neundorf at jenoptik.com - http://www.jenoptik-los.de
Home: neundorf at kde.org                - http://www.kde.org
      alex at neundorf.net               - http://www.neundorf.net



More information about the xdg mailing list