On 2016-01-05 17:24, Walter Bright wrote:
Doing unwinding in D frames when foreign exceptions are in-flight is
easy, because no knowledge of those FEs is required.
Catching them, however, requires detailed knowledge of exactly how they
work. This is not so easy. Catching C++ exceptions in D code will
require some careful study and work, and that work will not be
transferable to other FEs.
But since there seems to be 0 demand for catching other FEs, or even
interfacing D to other languages, this shouldn't be a problem.
Catching Objective-C exceptions might be interesting. If if catching C++
exceptions work, it should be trivial to add support for catching
Objective-C exceptions as well.
--
/Jacob Carlborg