Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!orchid!atbowler From: atbowler@orchid.UUCP Newsgroups: comp.lang.c Subject: Re: goto's and switch statements -- mild proposal Message-ID: <10567@orchid.waterloo.edu> Date: Wed, 31-Dec-69 18:59:59 EDT Article-I.D.: orchid.10567 Posted: Wed Dec 31 18:59:59 1969 Date-Received: Tue, 8-Sep-87 03:54:14 EDT References: <855@tjalk.cs.vu.nl> <2683@hoptoad.uucp> <916@haddock.ISC.COM> <298@auvax.UUCP> <10265@orchid.waterloo.edu> <6289@brl-smoke.ARPA> Reply-To: atbowler@orchid.waterloo.edu (Alan T. Bowler [SDG]) Organization: U. of Waterloo, Ontario Lines: 19 In article <6289@brl-smoke.ARPA> gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) writes: >In article <10265@orchid.waterloo.edu> rbutterworth@orchid.waterloo.edu (Ray Butterworth) writes: >> case 'a' :: 'z' : > >There's another serious problem underlying all these suggestions; >namely, that "a through z" has a well-defined meaning. Working >groups of /usr/group and/or IEEE P1003 are attempting to define >what regular expressions (which include case ranges) would MEAN >in a general, i.e. international, environment. I think you missed the point. The request was for case ranges. We all know that things can be misused, and the international alphabet problem is a common one. However, just because the original example happened to pick an example that might or might not represent a problem depending on the use of the program doesn't affect the original request. Ignore the fact that the example used character constants, and think of them as integers. e.g. case -9 :: -1: case 1 :: 9: