-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how exceptions are handled #109
Comments
Right, as of now, nothing had been done to handle exceptions as they cross boundaries. Since Rust 1.71, we could use |
True, though I think C++ would be able to catch it somewhere else in the callstack, which would be useful. Perhaps this library should switch to generating Unless I've misunderstood RFC-2945, using
I'm happy to write such a PR if this is something the maintainers think is worthwhile and not something I'm mistaken about. |
@ebegumisa your comment seems sensible. a PR would be welcome. |
I'm evaluating different options to use C++ code from rust, and an important point for me is that error handling should be seamless. It would be convenient if what happens when an exception crosses the boundary was documented somewhere.
The only relevant information I found was #21.
If anybody else wonders as well, I've now tried it myself, and it results in this crash:
In hindsight, this is the obvious behaviour, but it's still useful to have it explicitly mentioned.
The text was updated successfully, but these errors were encountered: