• 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: I think I wrongly got "Switch case is in protected scope"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I think I wrongly got "Switch case is in protected scope"


  • Subject: Re: I think I wrongly got "Switch case is in protected scope"
  • From: Antonio Nunes <email@hidden>
  • Date: Sat, 16 Aug 2014 12:04:01 +0100

On 16 Aug 2014, at 05:25, Quincey Morris <email@hidden> wrote:

> On Aug 15, 2014, at 20:31 , Antonio Nunes <email@hidden> wrote:
>
>> You do have a variable declaration: within the switch statement: "id const  browser = [PrBrowserController createPagelessBrowser];” You have to put braces around the statements in a case statement, if you’re declaring variables:
>
> I’m not a C language lawyer, but AFAIK this isn’t an accurate statement.
>
> The declaration you refer to isn’t *in* the switch statement’s scope. IAC:

You are right, of course. I overlooked the fact that that declaration lives inside a block. Apologies for the noise.

-António
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >I think I wrongly got "Switch case is in protected scope" (From: Daryle Walker <email@hidden>)
 >Re: I think I wrongly got "Switch case is in protected scope" (From: Antonio Nunes <email@hidden>)
 >Re: I think I wrongly got "Switch case is in protected scope" (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: I think I wrongly got "Switch case is in protected scope"
  • Next by Date: Changing Mac developer Agent
  • Previous by thread: Re: I think I wrongly got "Switch case is in protected scope"
  • Next by thread: Re: I think I wrongly got "Switch case is in protected scope"
  • Index(es):
    • Date
    • Thread