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. -- AndreiIt 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.
