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, but that
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/nci.t
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. Parrot
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 question is ... of
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
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,
I am not sure if this is the correct place to ask this, so please point
me to correct direction if it is not.
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
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 call