This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: C++ wrapping
> [ discussion of C++ ]
I wouldn't really advocate using the C-style function-based or
iterative GSL routines with functions defined by classes in C++. It
is too horrible, as demonstrated by the code flying past.
Regarding QT's method, as I'm sure everyone knows it uses MOC
preprocessor files to implement its object system, and these are a
non-standard hack.
For numerical code one needs to be able to write a single high-level
description of the algorithm, and then do code-generation to
specialise it. This requires a powerful macro facility to enable
transformations before compilation, which is really only found in
Lisp. I don't consider C++ templates to be adequate, they are also a
hack, and are not programmable in the same way as lisp macros.
--
Brian