Does D use zero-cost exceptions?

Walter Bright newshound2 at digitalmars.com
Tue Apr 16 21:02:22 UTC 2019


On 4/16/2019 1:52 PM, Steven Schveighoffer wrote:
> Don't we have nothrow for this?

Yes.

The problem with EH is not in the throwing, it's in the unwinding. Each RAII 
object requires its own try-finally, and try-finally disables many optimizations 
(such as code motion, enregistering of variables, etc.).


More information about the Digitalmars-d mailing list