On 24 September 2014 12:27, IgorStepanov via Digitalmars-d <digitalmars-d@puremagic.com> wrote: > On Tuesday, 23 September 2014 at 17:37:42 UTC, Andrei Alexandrescu wrote: >> >> We need a libunwind expert to figure out a good approach for handling >> exceptions thrown by C++ code into D. >> >> Is anyone fluent with libunwind? >> >> >> Andrei > > > Is there plans to catching C++ exceptions in D?
I'd say no to such an idea. > What kind of C++ exceptions planned to catch in D? None > For example C++ can throw primitive types exceptions, for example int. > Of cource, them can be wrapped into special D CPPException : Throwable, > class, which contains string representation of C++ exception. > What about C++ polymorthic exceptions? AFAIK, C++ exception are throwing > by-value, and catching by ref (to allow polimorthic catch). Where C++ calls > destructor for exception? In catch block? In D GC handles an exception > lifetime. > Is there any ideas about it? > P.S. I tell about user-side of catching C++ exceptions, not about > implementation. Let C++ land catch the exception and deal with it. Iain.