Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Interfacing Perl with C++, using XS, with external files, and using the STL as parameters and return values.

by dextius (Monk)
on Aug 06, 2010 at 13:50 UTC ( #853410=note: print w/replies, xml ) Need Help??


in reply to Re: Interfacing Perl with C++, using XS, with external files, and using the STL as parameters and return values.
in thread Interfacing Perl with C++, using XS, with external files, and using the STL as parameters and return values.

Wow. I love Devel::Size, I've used that module to test production code many times. Thank you so much for such a useful module. I'm pretty sure my approach is incompatible with exceptions, as I do all my work in the typemap, and I use the XS to directly map to my target function. What I "should" be doing is creating an insulating class, that can catch the exception at the XS layer, and then rethrowing the perl exception from there. This is basically what you are doing in your code. I still think this is unfortunate. You'd think there would be some handy macro that would handle this sort of thing for you.
  • Comment on Re^2: Interfacing Perl with C++, using XS, with external files, and using the STL as parameters and return values.

Replies are listed 'Best First'.
Re^3: Interfacing Perl with C++, using XS, with external files, and using the STL as parameters and return values.
by BrowserUk (Pope) on Aug 06, 2010 at 13:58 UTC
    Wow. I love Devel::Size, I've used that module to test production code many times. Thank you so much for such a useful module.

    The qudos for Devel::Size firmly belongs to the original author, Dan Sugalski. I just tweaked it a bit to make it a little faster, more reliable and use less memory.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://853410]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2021-03-04 03:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (98 votes). Check out past polls.

    Notices?