DIP 1008 Preliminary Review Round 1

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri May 26 01:49:42 PDT 2017


On 5/25/2017 4:54 PM, Atila Neves wrote:
> I think maybe the problem isn't with `throw` but with `catch`. What if instead 
> we make it so that:
> 
> catch(scope T ex) { /*...*/; }
> 
> Means:
> 
> catch(scope T ex) { /*...*/; ex.__dtor; }

The trouble comes in when one starts copying exception references around. Who 
then is responsible for destroying it?


More information about the Digitalmars-d mailing list