Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: XS cannot properly handle typemap with namespace (use XSpp)

by Anonymous Monk
on Jan 03, 2014 at 04:49 UTC ( #1069081=note: print w/replies, xml ) Need Help??

in reply to XS cannot properly handle typemap with namespace

use XSpp, ExtUtils::XSpp, XS for C++
  • Comment on Re: XS cannot properly handle typemap with namespace (use XSpp)

Replies are listed 'Best First'.
Re^2: XS cannot properly handle typemap with namespace (use XSpp)
by llancet (Friar) on Jan 03, 2014 at 05:58 UTC
    It seems XSpp is another system that is completely different with XS. So I'll have to suffer another painful learning......

        It's indeed painful for me. T_T

        There are two examples in the XSpp's package, and none of them fully used the XSpp's features. I spent a whole day to realize that xspp typemap should be generated to xs typemap via tools such as Module::Build::WithXSpp, otherwise you cannot use mapped types (like the "Object-WithIntAndString" example in XSpp package which used ExtUtils::MakeMaker). I also downloaded several perl packages which use XSpp, and non of them use the feature neither.

        Now I nearly make my code correctly compile, but I still don't understand how some errors were fixed and disappeared. And I still don't fully know the difference between "{parsed}{%precall_code %output_code}" and "{simple}{%xs_input_code %xs_output_code}". It seems the first solution don't work properly in my code.

        Moreover, the xspp lacks error reports. Some errors are not reported by xspp, and will just continue running silently and create malfunction xs code. You have to take hours to find clues about your bug from the final C file, and deduce the corresponding part of the xsp file.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1069081]
[Your Mother]: :P
[ambrus]: YourMother: my brother told me their cat wants to climb into the dishwasher if they leave the door open. Not when the dishwasher is started, but after it's done washing, because it's still warm and cats like warm.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2017-12-18 15:28 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (491 votes). Check out past polls.