• 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: Jeremy Pereira <email@hidden>
  • Date: Tue, 16 Feb 2010 10:15:41 +0000

On 15 Feb 2010, at 20:57, Marco S Hyman wrote:

> On Feb 15, 2010, at 12:23 PM, Jeremy French wrote:
>
>> Where do I find documentation for the C99 syntax?
>
> http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf
>
> But this really doesn't have anything to do with C99.
> Inline variable definition is C++ syntax, not C.

It has everything to do with C99.  In line variable declaration was introduced in C99 (except after case labels!).

> In C variables need to be declared at global scope or
> at the beginning of a compound statement.   The body
> of a function is a compound statement.
>
> That goes back at least as far as my 20 something year old K&R.
>
> /\/\arc
>
> _______________________________________________
> 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


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
 _______________________________________________
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: Jeremy Pereira <email@hidden>)
 >Re: Compiler Error (expected expression before 'NSArray') (From: Jeremy French <email@hidden>)
 >Re: Compiler Error (expected expression before 'NSArray') (From: Marco S Hyman <email@hidden>)

  • Prev by Date: Re: is interface builder suppose to autosave upon build?
  • Next by Date: Overkill - Declaration of 'XXX' shadows a member of 'this'
  • Previous by thread: Re: Compiler Error (expected expression before 'NSArray')
  • Next by thread: Xcode File Templates
  • Index(es):
    • Date
    • Thread