type checking on enums
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 |
_______________________________________________
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