In comp.lang.perl.announce, Brian Ingerson wrote:
>Inline.pm allows a programmer to write C code directly inside a Perl
>script and just run it. No XS, no SWIG, no make. Using Inline to write
>extension modules for the CPAN is fully supported and just as easy. C++,
>Fortran, Pascal, and Python are also being considered for future
>releases.
>
> BEGIN {$c_code = &c_code_generator()}
> use Inline C => $c_code; # will die if code doesn't compile
> myfunc1();
>
> greet('Ingy');
> greet(42);
>
> use Inline C => <<'END_OF_C_CODE';
>
> void greet(char* name) {
> printf("Hello %s!\n", name);
> }
>
> END_OF_C_CODE
Wow. I'm sold. Can this be how we should be doing XS in Perl 6?
--
Apr 13 11:05:20 apollo13 fsck[3927]: root, we have a problem.
- Jeff Gostin <[EMAIL PROTECTED]>