Simon Cozens <[EMAIL PROTECTED]> writes: >> 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? So we now run equivalent of xsubpp and cc every time script is run? Nice as an option but It don't want to do that for OpenGL (or Tk) with lots of wrappers. -- Nick Ing-Simmons
- Re: ANNOUNCE: Inline 0.23 (Mix Perl and C w/o XS) Simon Cozens
- Re: ANNOUNCE: Inline 0.23 (Mix Perl and C w/o XS) Dan Sugalski
- Re: ANNOUNCE: Inline 0.23 (Mix Perl and C w/o XS) Nick Ing-Simmons
- Re: ANNOUNCE: Inline 0.23 (Mix Perl and C w/o X... Jarkko Hietaniemi
- Re: ANNOUNCE: Inline 0.23 (Mix Perl and C w/o X... Sam Tregar
- Re: ANNOUNCE: Inline 0.23 (Mix Perl and C w... Graham Barr
- Re: ANNOUNCE: Inline 0.23 (Mix Perl and... Simon Cozens
- Re: ANNOUNCE: Inline 0.23 (Mix Per... Brian Ingerson
- Re: ANNOUNCE: Inline 0.23 (Mix... Jarkko Hietaniemi
- Re: ANNOUNCE: Inline 0.23 ... Brian Ingerson
- Re: ANNOUNCE: Inline 0.23 (Mix... Brian Ingerson
- Re: ANNOUNCE: Inline 0.23 (Mix Perl and... Sam Tregar
- Re: ANNOUNCE: Inline 0.23 (Mix Per... Brian Ingerson