On Wed, May 19, 1999 at 04:12:51PM -0700, Brent Fulgham wrote: > Ideally, a library would (in addition to it's C++ functionality) have > a C interface that doesn't really deal with the issue of objects. > Say, something that would accept some standard C types and structs, > and return same.
in other words, the sensible thing to do is to write a C library and also write a C++ wrapper for it (as well as perl, python, java, scheme, guile, or whatever wrappers). this is a never-ending debate, it pops up again and again but IMO, C is the common language which can be interfaced to from any other language, so C is the language of choice for general purpose libraries. for example: this, and related reasons, is why GNOME chose C rather than C++ as the base language for GNOME projects. Their decision was sound, and their reasons were sound. craig -- craig sanders