Type of expression in switch statement

Wm E Davidsen Jr davidsen at crdos1.crd.ge.COM
Tue Oct 31 02:15:44 AEST 1989


In article <20448 at mimsy.umd.edu>, chris at mimsy.umd.edu (Chris Torek) writes:
|  Incidentally, switch expressions of type `long' are now legal as well,
|  so this error message should be changed to `... not integral type'.

  Actually as you say "integeral types" are allowed, including short,
char and enum I would assume.
-- 
bill davidsen	(davidsen at crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon



More information about the Comp.lang.c mailing list