Proposal: Exceptions and @nogc

Atila Neves via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 4 10:38:36 PDT 2017


On Tuesday, 4 April 2017 at 08:41:51 UTC, Walter Bright wrote:
> On 4/4/2017 1:08 AM, Atila Neves wrote:
>> I think the point here is that some people already use 
>> pre-allocated exceptions.
>> With this proposal, they'd have to change their codebase or 
>> suddenly have it go
>> much slower.
>
> High performance code should never have exceptions in the fast 
> path. The code gen is heavily and unapologetically biased 
> towards speed in the non-exception path. This is true for C++ 
> and D.

Right, but that doesn't mean the slow path should become all the 
more slower for codebases that do this. I haven't, but if I had 
I'd imagine I'd be none too happy about it.

Atila


More information about the Digitalmars-d mailing list