[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: Newer xsubpp
Ilya Zakharevich writes:
: The purpose of xsubpp was to free the programmer from these mundane
: parts of the programmer's job, and let him concentrate on the
: description of the *interface* of the functions. However, in typical
: cases of 'out' and 'inout' arguments the current xsubpp API lacks a
: lot. My patch fixes this.
Hmm, the difficulty of creating out parameters was somewhat intentional.
While you might want the capability in a "thin" interface if the
underlying C interface happens to use out parameters, we'd generally
like to encourage people to use a more Perlistic approach of returning
multiple values.
An interesting parallel is that I intentionally wrote rn's Pnews script
in shell so it would run slowly.
: Another area of possible improvement is simplification of treatement
: of C API which takes length of strings.
Yes, that would be good.
I just wish the average C api was as well specified (and as inspectable)
as the average Java api. With Java one can write all the glue code
automatically. (In fact, that's precisely what JPL does.)
Larry
- Follow-Ups from:
-
Ilya Zakharevich <ilya@math.ohio-state.edu>
- References to:
-
Ilya Zakharevich <ilya@math.ohio-state.edu>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]