Article View: comp.std.c
Article #3612Switch switch
From: Jim Fleming
Date: Wed, 02 Aug 1995 07:21
Date: Wed, 02 Aug 1995 07:21
34 lines
1410 bytes
1410 bytes
Has there been any consideration given to relaxing the type requirements
for the C switch statement expression...???
switch (<integral expression>){
case <integral constant>:
...
default:
}
Does anyone want to be able to write....???
switch (aString) {
...
case "hello":
...
break;
case "world":
...
break;
}
Are there any compiler vendors that limit the number of case statements
to 257...which is permitted and essentially a char...???
--
Jim Fleming /|\ Unir Corporation Unir Technology, Inc.
jrf@tiger.bytes.com / | \ One Naperville Plaza 184 Shuman Blvd. #100
%Techno Cat I / | \ Naperville, IL 60563 Naperville, IL 60563
East End, Tortola |____|___\ 1-708-505-5801 1-800-222-UNIR(8647)
British Virgin Islands__|______ 1-708-305-3277 (FAX) 1-708-305-0600
\__/-------\__/ http:199.3.34.13 telnet: port 5555
Smooth Sailing on Cruising C+@amarans ftp: 199.3.34.12 <-----stargate----+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\____to the end of the OuterNet_|
Technical Details
Message-ID:
<3vn92m$oqt@News1.mcs.net>Path:
arc1-ca.pugleaf.net!news.mcs.net!usenetShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.mcs.net!usenet From: jim.fleming@bytes.com (Jim Fleming) Newsgroups: comp.std.c Subject: Switch switch Date: 2 Aug 1995 07:21:58 GMT Organization: Unir Corporation Message-ID: <3vn92m$oqt@News1.mcs.net> NNTP-Posting-Host: pc11.bytes.com Mime-Version: 1.0 X-Newsreader: WinVN 0.93.14