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

Reply via email to