Proposal 2: Exceptions and @nogc

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 9 18:54:54 PDT 2017


On 4/9/2017 6:32 PM, Andrew Godfrey wrote:
> Ok. So then if I have created a refcounted Exception, and later (in another
> function) I take a reference to it (by stuffing it into a struct field, say),
> how does that work?

You can't, because the refcounted Exception will be marked with 'scope' in the 
catch block.


More information about the Digitalmars-d mailing list