DIP 1008 Preliminary Review Round 1

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 18 12:01:09 PDT 2017


On Friday, 26 May 2017 at 08:45:40 UTC, Walter Bright wrote:
>> Why doesn't the rethrow count as a move? There is no way it 
>> can be reused in the scope that rethrows. -- Andrei
>
> It could be - it's just that there's nothing currently in the 
> compiler to support the notion of moves. So the destructor will 
> still wind up getting called on it.
>
> It's a good idea for a future enhancement, though.

Even worth a hack right now to avoid ref counting for those 
exceptions IMO.


More information about the Digitalmars-d mailing list