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.

The above example does not do much in the way passing data between
Perl and C.  Maybe Inline does it, maybe not, but I can do the above
with system(), be it either Perl or C system()...

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Reply via email to