Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mcvax!botter!tjalk!rblieva From: rblieva@cs.vu.nl (Roemer b Lievaart) Newsgroups: comp.lang.c Subject: Re: goto's and switch statements -- mild proposal Message-ID: <865@tjalk.cs.vu.nl> Date: Mon, 17-Aug-87 13:32:35 EDT Article-I.D.: tjalk.865 Posted: Mon Aug 17 13:32:35 1987 Date-Received: Tue, 18-Aug-87 05:17:11 EDT References: <855@tjalk.cs.vu.nl> <2683@hoptoad.uucp> <916@haddock.ISC.COM> <1100@geac.UUCP> <298@auvax.UUCP> Reply-To: rblieva@cs.vu.nl (Roemer B. Lievaart) Organization: VU Informatica, Amsterdam Lines: 29 In article <298@auvax.UUCP> rwa@auvax.UUCP (Ross Alexander) writes: [...] > >A long time ago, when I was young and dinosaurs roamed the woods, I did >some hacking in a dialect of B called B+ (Reinhaldo de Braga, take a bow). >It supported a construct in case labels that we called 'a range case'. >it looked something like > > case 'a' - 'z' : > [...] Ah, yes! Don't we all get bored of typing: case 'A': case 'B': case 'C': .... etc until case 'Z': ? However, " case 'a' - 'z': " means ofcourse " case -25: " we probably had better used something like '..' here (well, not *everything* in C should be different from Pascal, should it? :-) ) I really would like to see the possibility to write " case 'A'..'Z': " and probably also " case 'A'..'Z', 'a'..'z': ". As already was pointed out, the comma-operator is useless (and not allowed?) in constant expressions, and the comma having two meanings already, who cares for a third. All the other strange characters on my keyboard that are not used (as operators) in C, don't seem to qualify for the job. [ @`\# ] Well, just an idea. It's just that I get sore fingers, sometimes. -- Roemer, Amsterdam, the Netherlands. DISCLAIMER: we live in a democratic country!