Possibility of adopting Rust's Error Handling?

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Apr 1 21:24:33 UTC 2022


On Fri, Apr 01, 2022 at 09:41:09AM +0000, Alexandru Ermicioi via Digitalmars-d wrote:
[...]
> Just wondering, would it be possible to use lubunwind, only in extern
> c++ declarations?
> 
> I.e. we'd have own exception handling in D code, and C++ compliant
> exceptions in extern C++ one?
> 
> This would mean that when d code interacts with c++ it will get
> translated into respective mechanism, from c++ if it is from c++ code
> called by D code, and into c++ one if it is from extern c++ d code
> that is called by c++ code.
[...]

That's what I'd propose.  But Walter seems dead set against exceptions
in general, so I dunno whether this will ever actually happen.


T

-- 
Lottery: tax on the stupid. -- Slashdotter


More information about the Digitalmars-d mailing list