DIP 1008 Preliminary Review Round 1

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed May 24 22:24:12 PDT 2017


On 5/23/2017 3:40 PM, Martin Nowak wrote:
> Why does it have to be refcounted? Seems like there is only ever one reference 
> to the current exception (the catch variable).

Rethrowing the catch variable makes for 2 references.


> Has staticError been considered? It has a potential issue with multiple nested 
> exceptions, but otherwise works fine.
> https://github.com/dlang/druntime/blob/bc832b18430ce1c85bf2dded07bbcfe348ff0813/src/core/exception.d#L683 

Doesn't work for chained exceptions.


More information about the Digitalmars-d mailing list