[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

Re: Newer xsubpp



On Fri, 21 Jan 2000 03:31:35 EST, Ilya Zakharevich wrote:
>The copy of xsubpp which I have on my disk allows for ANSI-style
>declarations, and in/inout/out modifiers.  Say, XSUB
>
>int
>foo( in int a, out double b, inout IV c);
>
>can be used from Perl as
>
>($res, $b, $c_out) = foo($a, $c_in);
>
>Basically, 'in' is ignored, 'out' variables are not in the Perl

So why require them to specify 'in'?  Just make it the default.

>parameter list, 'inout' variables are in the parameter list and in the
>output list.
>
>Please tell me what you think.

Since this looks like just syntactic sugar over what XS already
provides, it may be worth writing this as a preprocessor that emits
the equivalent XS code.


Sarathy
gsar@ActiveState.com


Follow-Ups from:
Tim Bunce <Tim.Bunce@ig.co.uk>
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]