Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!bfmny0!tneff From: tneff@bfmny0.UU.NET (Tom Neff) Newsgroups: comp.lang.c Subject: Re: enum type checking and switches question Message-ID: <14802@bfmny0.UU.NET> Date: 26 Oct 89 16:28:27 GMT References: <1116@qip.UUCP> <1489@crdos1.crd.ge.COM> Reply-To: tneff@bfmny0.UU.NET (Tom Neff) Organization: ^ Lines: 11 Summary: Expires: Sender: Followup-To: In article <1489@crdos1.crd.ge.COM> davidsen@crdos1.UUCP (bill davidsen) writes: > Makinging [enum] work in a range checking manner would break a lot of >programs, but I wish there was a way. Your compiler is not broken for >failing to perform the checks, that's the way it works. Lint, on the other hand, ought to be more than welcome to perform the appropriate checks. I think Gimpel caught me once on enum, but I dunno whether or what other implementations do. -- Hey, where'd the Colombian Coffee ads go all of %8 Tom Neff a sudden! Is Juan Valdez hiding in Panama? 8% tneff@bfmny0.UU.NET