On Monday, 1 October 2012 at 04:18:52 UTC, Walter Bright wrote:
Also, consider that in C++ you can throw any type, such as an int. There is no credible way to make this work reasonably in D, as exceptions are all derived from Exception.
You could just detect C++ exceptions in the SEH handler and wrap them in a "ForeignLanguageException" or "CppException" class with a "Variant"-type member.
Not saying that this is necessarily an essential feature, though. David
