DMD now does Dwarf style exception handling!

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 5 08:24:19 PST 2016


On 1/5/2016 1:17 AM, Iain Buclaw via Digitalmars-d wrote:
> Catching from any foreign language that interacts with the same EH interface
> should be easy.  Just bear in mind that each language may put the thrown object
> proper in a different place.

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.



More information about the Digitalmars-d mailing list