• 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
type checking on enums
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

type checking on enums


  • Subject: type checking on enums
  • From: Perry Winkel <email@hidden>
  • Date: Wed, 12 Dec 2007 13:39:19 +0100

hi,

at the risk of asking something ot...

i have an enum type:

enum px3resulttype{px3resulttypebyte,px3resulttypebool,px3resulttypenumber,px3resulttypelong,px3resulttypedouble,px3resulttypepx2s,px3resulttypepx3param,px3resulttypepx3row};

with variables like

px3resulttype itsresulttype

in my (legacy) code, i have statements like

switch(itsresulttype){
case 0: <some statement>
case 1: <some statement>
case 2: <some statement>
}

i would very much Xcode to report a syntax error on this
but i somehow can not find an option with an approriate
name, can someone hint me on where to look for it and how
it is named?

--
met vriendelijke groeten
perry winkel

http://www.perry7.nl
http://www.myspace.com/dehufters




 _______________________________________________
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: type checking on enums
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: pragma nowarn
  • Next by Date: How does the compiler figure out conflicting return types, and why no warnings?
  • Previous by thread: Re: Automatic doc set updates?
  • Next by thread: Re: type checking on enums
  • Index(es):
    • Date
    • Thread