DMD now does Dwarf style exception handling!

Dan Olson via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 4 16:18:40 PST 2016


Walter Bright <newshound2 at digitalmars.com> writes:

> What I've been working on for the last month or so.
>
> https://github.com/D-Programming-Language/dmd/pull/5324
>
> For Linux 64 anyway. Anyone who wants to do PRs to extend it to Linux
> 32, OSX and FreeBSD, feel free! Unfortunately, this is of no help with
> Win64, which uses its own unique system. DMD for Win32 already can
> catch C++ exceptions, but Win32 is a dead platform.
>
> This is an enabling technology that will confer on D the ability to
> catch C++ exceptions, which is key to interaction with native C++
> libraries.
>
> Next up: actually catching C++ exceptions!
>
> Thanks to everyone who helped out with this.

Very cool.  Is it conceivable that DMD, GDC, and LDC might one day share
common support code in druntime (personality, etc)?  Could be many
benefits like a larger test population.
-- 
Dan


More information about the Digitalmars-d mailing list