sorry to spam perl6-internals, but i'm answering a public question, and
you may find something worth thinking about my description of the hoops
i have to jump through... or maybe not. ignore if you like. i am
quite open to suggestions how i should do this for perl6. replies
off-list, please,
On Tue, 28 Oct 2003, Anuradha Ratnaweera wrote:
> On Tue, 2003-10-28 at 19:26, Dan Sugalski wrote:
> > On Tue, 28 Oct 2003, Anuradha Ratnaweera wrote:
> >
> > > 2. If the ansewr to 0 or 1 is "no", will there be another standard in
> > > Perl 6?
> >
> > Yes. Whatever we do for Parrot.
>
> Thigs are
On Tue, 2003-10-28 at 19:26, Dan Sugalski wrote:
> On Tue, 28 Oct 2003, Anuradha Ratnaweera wrote:
>
> > 2. If the ansewr to 0 or 1 is "no", will there be another standard in
> > Perl 6?
>
> Yes. Whatever we do for Parrot.
Thigs are getting clearer and more confusing ;-)
I am still in the tryin
Anuradha Ratnaweera <[EMAIL PROTECTED]> wrote:
> Let me break down the questions into more than one:
> 0. Is XS the standard way of binding Perl 5 to a C/C++?
Yes, till now. Ponie (perl ~5.12) will use both XS and NCI/extend.c.
> 1. If answer to 0 is 'yes', will it be the same for Perl 6?
Perl6
On Tue, 28 Oct 2003, Anuradha Ratnaweera wrote:
> On Tue, 2003-10-28 at 14:10, Leopold Toetsch wrote:
> > Anuradha Ratnaweera <[EMAIL PROTECTED]> wrote:
> >
> > > Just another quick, and possibly dumb, question: Is XS the standard way
> > > of binding Perl to a C/C++ library?
> >
> > If your quest
On Tue, 2003-10-28 at 14:10, Leopold Toetsch wrote:
> Anuradha Ratnaweera <[EMAIL PROTECTED]> wrote:
>
> > Just another quick, and possibly dumb, question: Is XS the standard way
> > of binding Perl to a C/C++ library?
>
> If your question is "... of binding Parrot to a C/C++ library?", then
> no
Anuradha Ratnaweera <[EMAIL PROTECTED]> wrote:
> Just another quick, and possibly dumb, question: Is XS the standard way
> of binding Perl to a C/C++ library?
If your question is "... of binding Parrot to a C/C++ library?", then
no. Parrot uses NCI (native call interface). S. library/* and
t/pmc/
Anuradha Ratnaweera <[EMAIL PROTECTED]> wrote:
> But if the structure of the structure _is_ known, then there is the
> possibility of kind of "rearranging" the hashes and calling the C/C++
> library without duplicating the related data to a seperate structure.
Parrot doesn't have a hash there, bu
On Tue, 2003-10-28 at 11:24, Anuradha Ratnaweera wrote:
>
> As far as I know, there is no "native" way of calling C/C++ libraries
> from within Perl 5. When C/C++ API involves structures, the
> corresponding Perl binding uses hashes, and an intermediate step
> converts the hash to a structure, and