On Thu, Aug 17, 2000 at 08:20:35PM +0000, Nick Ing-Simmons wrote:
> 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.
Inline calculates an MD5 hash of the inlined source to decide if it needs to
recompile.
-C.