C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Exception compatibility with aliens

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Wed, 18 Jan 2023 15:35:55 +0000
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".

Received on 2023-01-18 15:36:07