On 12/09/14 02:44, David Nadlinger wrote:
Just a quick comment on this: 2) is very simple to implement for all the compilers that actually use libunwind Dwarf 2 EH on Linux, i.e. GDC and LDC (I think deadalnix already looked into this for SDC).
It would be nice if DMD could do the same for D exceptions.
3) is also doable, but of course significantly more annoying because you need to deal with the internals of the exception ABI of your C++ compiler. Accessing the exception object is relatively trivial, ABI and mangling support is slowly coming anyway, but OTOH handling the exception lifetime correctly could become somewhat of a headache.
Is handling the exception any more of a headache compared to only using C++? -- /Jacob Carlborg