On Fri, 19 Jul 2013 08:19:19 -0400, John Gilmore wrote:
>
>The C language switch statement is defined very specifically and
>carefully as an SBCS single-character facility. Not at all
>incidentally, this definition ensures that branch tables can always be
>used to implement a C switch statement.
>
FSVO "always". From:
C A Reference Manual
THIRD EDITION
Samuel P. Harbison
Guy L. Steele Jr.
PRENTICE HALL, Englewood Cliffs, NJ 07632
1991
Although ANSI C allows the control expression to be of any
integer type, some older compilers do not permit it to be
of type *long* or *unsigned long*. ANSI C also permits
an implementation to limit the number of separate *case*
labels in a *switch* statement to 257 (that is, more than
enough to handle all values of type *char*).
(Just distinguishing "permits" from "ensures".)
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN