in reply to Re: Calling C++ functions from Perl without using xsubpp
in thread Calling C++ functions from Perl without using xsubpp
Inline::C and Co. provide automatic conversion to some set of common types, just like XS does. If using these types is enough, then you don't need anything else but those modules. If you have to work with more complex data structures, then you have to .... learn how to work with XS.
Perhaps I've misread (and inappropriately edited) that excerpt from your post, but it seems to me that you're saying that Inline::C is good only for some limited set of C types.
That's not the case - if it can be done using XS then it can be done using Inline::C. After all, Inline::C is little more than a utility that generates an XS file, which it then compiles.
(I keep thinking there must be *some* feature of XS that Inline::C can't reproduce ... and I'd love to see some examples that validate such thinking.)
Cheers,
Rob
Perhaps I've misread (and inappropriately edited) that excerpt from your post, but it seems to me that you're saying that Inline::C is good only for some limited set of C types.
That's not the case - if it can be done using XS then it can be done using Inline::C. After all, Inline::C is little more than a utility that generates an XS file, which it then compiles.
(I keep thinking there must be *some* feature of XS that Inline::C can't reproduce ... and I'd love to see some examples that validate such thinking.)
Cheers,
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Calling C++ functions from Perl without using xsubpp
by andal (Hermit) on Sep 20, 2012 at 06:56 UTC | |
by syphilis (Archbishop) on Sep 20, 2012 at 09:32 UTC |
In Section
Seekers of Perl Wisdom