Re: Arc: Switch case is in protected scope
Re: Arc: Switch case is in protected scope
- Subject: Re: Arc: Switch case is in protected scope
- From: Scott Ribe <email@hidden>
- Date: Tue, 22 Oct 2013 10:57:07 -0600
On Oct 22, 2013, at 10:46 AM, Maxthon Chan <email@hidden> wrote:
> As I said, either ARC or C++ objects with constructors and destructors requires compiler to insert code into the beginning and ending of the current scope
For C++, the constructor is inserted at the call point, not at the beginning of the scope. Which actually makes it more clear what the problem with switch is. (If the constructor were inserted at the beginning of the scope, there would be no problem with potentially skipping over it.)
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden