• 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: Mysterious Parse Error in switch statement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mysterious Parse Error in switch statement


  • Subject: Re: Mysterious Parse Error in switch statement
  • From: j o a r <email@hidden>
  • Date: Thu, 18 Dec 2003 13:59:38 +0100

On 2003-12-18, at 13.39, email@hidden wrote:

> Is it because Obj-C is more like C than C++ and it doesn't like
> variables
> declared any where you like but needs them at the beginning of a code
> block.

With GCC 3 (C99) this is actually no longer the case. In general you
can declare variables anywhere - not only at the beginning of a block.
For some reason though, you still can't do that in switch statements.

j o a r

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >RE: Mysterious Parse Error in switch statement (From: email@hidden)

  • Prev by Date: RE: Mysterious Parse Error in switch statement
  • Next by Date: Shared IBOutlets ?
  • Previous by thread: RE: Mysterious Parse Error in switch statement
  • Next by thread: Shared IBOutlets ?
  • Index(es):
    • Date
    • Thread