DIP 1008 Preliminary Review Round 1

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu May 25 00:30:42 PDT 2017


On 5/25/17 6:24 AM, Walter Bright wrote:
> 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.

Why doesn't the rethrow count as a move? There is no way it can be 
reused in the scope that rethrows. -- Andrei


More information about the Digitalmars-d mailing list