Re: I think I wrongly got "Switch case is in protected scope"
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