• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Arc: Switch case is in protected scope
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:16:13 -0600

On Oct 22, 2013, at 9:50 AM, Sean McBride <email@hidden> wrote:

> I don't think you can quote the Standard about 'goto' and just wave your hands and say it applies to 'switch' also.  :)  The Standard's description of 'switch' should contain the answer

Switch is just a pile of goto, and I'm pretty sure the standard says so somewhere.

> However, it does seem to me there is a clang bug here somewhere.

I don't think so. It's perhaps worth noting that in C++ or Objective-C++ you get a similar warning when you do this with an instance that has a constructor or destructor, and this goes back to versions of GCC from at least several years ago--trust me, I know about that ;-)

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


  • Follow-Ups:
    • Re: Arc: Switch case is in protected scope
      • From: "Clark S. Cox III" <email@hidden>
References: 
 >Arc: Switch case is in protected scope (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Arc: Switch case is in protected scope (From: Daniel Höpfl <email@hidden>)
 >Re: Arc: Switch case is in protected scope (From: Sean McBride <email@hidden>)

  • Prev by Date: Re: Arc: Switch case is in protected scope
  • Next by Date: Re: I can't use man command to find c api manuals in Mavericks GM
  • Previous by thread: Re: Arc: Switch case is in protected scope
  • Next by thread: Re: Arc: Switch case is in protected scope
  • Index(es):
    • Date
    • Thread