On Aug 6, 2004, at 11:35 PM, Thilo Planz wrote:
What would be nice, though, is if CB could somehow suppress the SIGTRAP and wrap it into a normal Perl exception, that we could catch
with an eval-block.
Anyone knows how to do that?
I do. ;-)
What you've described is exactly the plan, to wrap the call to the ObjC method in the normal exception macros for ObjC. If an exception is caught, it would be passed to the XS equivalent to the die() function.
I need to do some work on exception handling in the other direction, too, so that an NSException that's fired from Perl is handled, unwinding the Perl call stack to a sane state before propagating the exception.
sherm--