• 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
why can't you initialize variable in case statements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

why can't you initialize variable in case statements


  • Subject: why can't you initialize variable in case statements
  • From: Bob Sabiston <email@hidden>
  • Date: Wed, 21 Sep 2005 15:38:37 -0500

Hello,

 In trying to port to xcode, I get errors when a variable is initialized after any goto statement or within a case statement.  Why?  Is that a problem?  

 error: jump to case label
 error:   crosses initialization of 'int handled'

Thanks
Bob

 _______________________________________________
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

  • Follow-Ups:
    • Re: why can't you initialize variable in case statements
      • From: Paul Walmsley <email@hidden>
    • Re: why can't you initialize variable in case statements
      • From: "Corey O'Connor" <email@hidden>
  • Prev by Date: Re: distributed builds in makefiles
  • Next by Date: Specifying Where The Build Product Should Be Placed
  • Previous by thread: type_info
  • Next by thread: Re: why can't you initialize variable in case statements
  • Index(es):
    • Date
    • Thread