Re: Exception compatibility with aliens
Frederick Virchanza Gotham via Std-Proposals <[email protected]> Wed, 18 Jan 2023 15:35:55 +0000
| Newsgroups | gmane.comp.lang.c++.isocpp.proposals,gmane.comp.python.devel |
|---|---|
| Message-ID | <CALtZhhNm7sf=-EE2_gcX9DpYnzNenPpLczdWsWb1SnEUtxshGg@mail.gmail.com> |
On Wed, Jan 18, 2023 at 3:07 PM Jason McKesson wrote: > > Also, this proposal seems to be missing the biggest issue with > cross-language exception handling: the fact that you can't throw > exceptions across languages. The only thing you *can* do is catch > exceptions on the source language end, convert them into some data > packet, and throw a different exception on the destination language > side. Yes this is what I had in mind. Behind the scenes, the C++ compiler would catch the Python exception and then throw something that C++ can deal with "such as std::aliens::python::exception". -- Std-Proposals mailing list [email protected] https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals