There was a discussion about Exceptions in D.learn that may be relevant.

http://forum.dlang.org/thread/yqzjldpknloyxwlbu...@forum.dlang.org

If you look though the discussion towards the end you'll see mention of "Lippincott functions", and from there a C++ exception handler example is shown where you can catch any exception in C++. With an exception handler it becomes practical to convert any C++ exception into something that D will understand through a wrapper function that is exported to D. You won't of course be catching the C++ exceptions directly inside D (and you will never want to anyway), but you should be able to convert them into corresponding D exceptions and catch them from inside your D code.

If you have any success with this, please share your experience.

--rt


Reply via email to