On Thu, 21 Sep 2000, you wrote:

> This one-liner is a complete perl extension:
>
>     perl -e 'print add(2,2);use Inline C=>"int add(int x,int y){return
> x+y;}"'

I haven't written any XS myself, but I was under the impression that one 
problem with it is that what you write an extension in (XS) isn't the same as 
the language that you're debugging (C).  (If this isn't true, then just 
ignore this message...)  If I were to ever write a Perl extension, I'd like 
the code I write to be the same as the code I'm going to debug.

But if Perl6 is changed so that you can write extensions in plain old C 
(without using something like Inline), it seems certain that there'd be some 
XS compatability tool, so as to not break all the current XS code out there.  
So then we could have three ways of writing an extension: straight C, XS, and 
Inline.  Hmmm....  There's More Than One Way To Do It? ;-)

-- 
Matthew Cline        | Suppose you were an idiot.  And suppose that
[EMAIL PROTECTED] | you were a member of Congress.  But I repeat
                     | myself.  -- Mark Twain

Reply via email to