> On Jun 1, 2015, at 9:53 PM, Scott Ribe <scott_r...@elevated-dev.com> wrote:
> 
> On Jun 1, 2015, at 10:43 PM, Britt Durbrow 
> <bdurb...@rattlesnakehillsoftworks.com> wrote:
>> 
>> So…. it looks like clang at least is doing the right thing and calling the 
>> destructor when the variable goes out of scope.
> 
> Yep. But I believe with goto you can skip over a constructor--but at least 
> you get a warning.

I just tried… I get an error, not a warning: “Goto into protected scope”.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to