• 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: Graham Cox <email@hidden>
  • Date: Tue, 22 Oct 2013 09:10:59 +0100

On 22/10/2013, at 9:02 AM, "Gerriet M. Denkmann" <email@hidden> wrote:

> (I still would like to know whether my code was faulty, or whether this is a compiler bug


Your code was faulty, at least according to the rules of C (which could be argued about, but not fruitfully). If you insert temporary variables within a particular case, you need to put braces around the code for that case.

--Graham


_______________________________________________

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


References: 
 >Arc: Switch case is in protected scope (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Arc: Switch case is in protected scope (From: ChanMaxthon <email@hidden>)
 >Re: Arc: Switch case is in protected scope (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Arc: Switch case is in protected scope
  • Next by Date: Re: Arc: Switch case is in protected scope
  • 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