Article View: comp.std.c
Article #1701Re: Proposed Enhancement to select/case (yes, I know...)
From: Doug Gwyn
Date: Fri, 14 Sep 1990 19:14
Date: Fri, 14 Sep 1990 19:14
8 lines
953 bytes
953 bytes
In article <740@garth.UUCP> fouts@bozeman.bozeman.ingr.UUCP (Martin Fouts) writes: >The problem is hinted at by Doug Gwyn in his parenthetic comment >"(These are numbers, not characters!)" The portable solution is to >define behavior for characters, thus ending the debate. My point is that you switch on the value of an integer, not on a character. There are already character classification mechanisms available, just not using "switch".
Technical Details
Message-ID:
<13857@smoke.BRL.MIL>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!rutgers!cmcl2!adm!smoke!gwynReferences:
<MEISSNER.90Aug31102441@osf.osf.org> <13719@smoke.BRL.MIL> <740@garth.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!psuvax1!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: Proposed Enhancement to select/case (yes, I know...) Message-ID: <13857@smoke.BRL.MIL> Date: 14 Sep 90 19:14:19 GMT References: <MEISSNER.90Aug31102441@osf.osf.org> <13719@smoke.BRL.MIL> <740@garth.UUCP> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 8