Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!husc6!rutgers!lll-lcc!unisoft!hoptoad!gnu From: gnu@hoptoad.uucp (John Gilmore) Newsgroups: comp.lang.c Subject: Re: goto's and switch statements -- mild proposal Message-ID: <2683@hoptoad.uucp> Date: Sat, 8-Aug-87 04:17:11 EDT Article-I.D.: hoptoad.2683 Posted: Sat Aug 8 04:17:11 1987 Date-Received: Sun, 9-Aug-87 10:49:54 EDT References: <855@tjalk.cs.vu.nl> Organization: Nebula Consultants in San Francisco Lines: 19 rblieva@cs.vu.nl (Roemer b Lievaart) wrote: > defolt: > default: /* code, probably error handler */ > break ; > const1: ... > const2: if ( ! const2_allowed ) > goto defolt ; I have had to use this kind of code too. The goat ooze don't bother me. What bothers me is that I can't say: goto default; and have it take me to the default: label. While we're at it, why not also allow "goto case XXX"? Seems like this would make state machines and such easier to read and write in C. -- {dasys1,ncoast,well,sun,ihnp4}!hoptoad!gnu gnu@postgres.berkeley.edu Alt.all: the alternative radio of the Usenet.