On Nov 1, 2010, at 8:03 PM, Jeff Johnson wrote:

> 
> But setjmp/longjmp could be mapped into ruby and other exceptions if
> needed. I suspect that moving from C -> C++ will be a tad easier,
> setjmp/longjmp are exactly pleasant debugging.
=================^^^ are NOT

But its entirely feasible to use the mongo-c-driver #define's
to drill in exceptions into ruby bindings, and throw ruby exceptions
from C modules.

Note that the mongo-c-driver uses MONGO_TRY ... MONGO_CATCH ... MONGO_THROW
in only a few places, and (I'll bet) none of those places are nested.

With C -> RUBY exception transfers all exception handling will be nested
to accomplish the transfer.

hth

73 de Jeff
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to