Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!ima!haddock!karl From: karl@haddock.UUCP Newsgroups: comp.lang.c Subject: Re: Case fall throughs Message-ID: <943@haddock.ISC.COM> Date: Fri, 14-Aug-87 13:29:59 EDT Article-I.D.: haddock.943 Posted: Fri Aug 14 13:29:59 1987 Date-Received: Sat, 15-Aug-87 17:32:02 EDT References: <2201@zeus.TEK.COM> Reply-To: karl@haddock.ima.isc.com (Karl Heuer) Organization: Interactive Systems, Boston 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