Proposal: Exceptions and @nogc

Nick Sabalausky (Abscissa) via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 4 17:10:41 PDT 2017


On 04/04/2017 04: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.
>

Isn't the main point of pre-allocated exceptions to improve 
control/determinism in memory usage/allocation?

I don't think speed is the issue. As I see it, the issue is that it 
takes "this throw was SPECIFICALLY DESIGNED to NOT affect the heap" and 
turns it into "this throw DOES affect the heap, even though the author 
went out of their way to deliberately prevent that".



More information about the Digitalmars-d mailing list