Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!karl@haddock.ISC.COM From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: Case fall throughs Message-ID: <8902@brl-adm.ARPA> Date: Thu, 20-Aug-87 14:58:06 EDT Article-I.D.: brl-adm.8902 Posted: Thu Aug 20 14:58:06 1987 Date-Received: Sat, 22-Aug-87 11:12:50 EDT Sender: news@brl-adm.ARPA Lines: 15 In article <2201@zeus.TEK.COM> dant@tekla (Dan Tilque) writes: >... I do not advocate removing this [fallthrough] feature completely from the >language and substituting goto case labels [because fallthrough is faster]. Any good optimizer will recognize that "goto foo; foo:" is elidable. >However, in the common ordinary program, I think it's cleaner to do something >like this: [statements common to more than one case factored out to a >subprocedure] I just had this situation occur. I haven't yet factored it out (the code in question modifies register variables), but I'll probably either do that or emulate Zahn exits. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint