how to catch D Throwables (or exceptions) from C++?
Timothee Cour via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Nov 30 17:58:13 PST 2016
eg:
```
dlib.d:
extern(C) void dfun(){assert(0, "some_msg");}
clib.cpp:
extern "C" void dfun();
void fun(){
try{
dfun();
}
catch(...){
// works but how do i get "some_msg" thrown from D?
}
}
```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20161130/2c069177/attachment.html>
More information about the Digitalmars-d-learn
mailing list