<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 5 January 2016 at 17:24, Walter Bright via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On 1/5/2016 1:17 AM, Iain Buclaw via Digitalmars-d wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Catching from any foreign language that interacts with the same EH interface<br>
should be easy.  Just bear in mind that each language may put the thrown object<br>
proper in a different place.<br>
</blockquote>
<br></span>
Doing unwinding in D frames when foreign exceptions are in-flight is easy, because no knowledge of those FEs is required.<br>
<br>
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.<br>
<br>
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.<br>
<br>
</blockquote></div><br></div><div class="gmail_extra">I gave a very abridged example here:<br><br><a href="http://forum.dlang.org/post/mailman.2091.1447287382.22025.digitalmars-d@puremagic.com">http://forum.dlang.org/post/mailman.2091.1447287382.22025.digitalmars-d@puremagic.com</a><br><br></div><div class="gmail_extra">Referenced unwind-cxx.h is found in a github mirror:<br><br><a href="https://github.com/gcc-mirror/gcc/blob/1e9147dd7b41b6e32c25501b50df73e74b75387f/libstdc%2B%2B-v3/libsupc%2B%2B/unwind-cxx.h#L58-L98">https://github.com/gcc-mirror/gcc/blob/1e9147dd7b41b6e32c25501b50df73e74b75387f/libstdc%2B%2B-v3/libsupc%2B%2B/unwind-cxx.h#L58-L98</a><br></div></div>