• 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: Compiler Error (expected expression before 'NSArray')
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiler Error (expected expression before 'NSArray')


  • Subject: Re: Compiler Error (expected expression before 'NSArray')
  • From: "Hank Heijink (Mailinglists)" <email@hidden>
  • Date: Mon, 15 Feb 2010 11:28:47 -0500

On Feb 15, 2010, at 11:18 AM, Thomas Wetmore wrote:

> 1. Declarations are not allowed in the case portions of switch statements.

Actually, they are; they just can't be the first statement. The following will compile without errors:

int i = 0;
switch (i) {
case 0:
	;
	NSArray *results;
  break;
default:
  break;
}

Hank

 _______________________________________________
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: 
 >Compiler Error (expected expression before 'NSArray') (From: jeremy <email@hidden>)
 >Re: Compiler Error (expected expression before 'NSArray') (From: Thomas Wetmore <email@hidden>)

  • Prev by Date: Re: Compiler Error (expected expression before 'NSArray')
  • Next by Date: Re: Xcode performance issues over time
  • Previous by thread: Re: Compiler Error (expected expression before 'NSArray')
  • Next by thread: Re: Compiler Error (expected expression before 'NSArray')
  • Index(es):
    • Date
    • Thread