Is there anything that would prevent D from catching C++
exceptions?
It would be nice to be able to leverage C++ libraries, but if you
can't catch C++ exceptions, I'm not sure how realistic that is.
That doesn't mean that catch() in D has to be the catcher.
If there was some way to indicate
this might be relevant: see code that Swig generates when writing C++ wrappers :
eg:
// Support for throwing D exceptions from C/C++.
typedef enum {
SWIG_DException = 0,
SWIG_DIllegalArgumentException,
SWIG_DIllegalElementException,
SWIG_DIOException,
SWIG_DNoSuchElementException,
}
On 2013-03-30 05:06:31 +, "J" said:
Is there anything that would prevent D from catching C++ exceptions?
It would be nice to be able to leverage C++ libraries, but if you can't
catch C++ exceptions, I'm not sure how realistic that is.
That doesn't mean that catch() in D has to be the ca
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 w