Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!pesnta!amd!amdcad!amdimage!prls!philabs!pwa-b!mmintl!franka From: franka@mmintl.UUCP (Frank Adams) Newsgroups: net.lang.c Subject: Re: An amusing piece of code Message-ID: <1244@mmintl.UUCP> Date: Mon, 14-Apr-86 16:11:22 EST Article-I.D.: mmintl.1244 Posted: Mon Apr 14 16:11:22 1986 Date-Received: Sat, 19-Apr-86 13:08:20 EST References: <1370@ism780c.UUCP> <195@desint.UUCP> Reply-To: franka@mmintl.UUCP (Frank Adams) Organization: Multimate International, E. Hartford, CT Lines: 20 In article <195@desint.UUCP> geoff@desint.UUCP (Geoff Kuenning) writes: > case B: > B-code; > goto common; > case C: > C-code; > goto common; > case D: > D-code; >common: > BCD-common-code; > break; A quibble: I would put a goto common; between the D-code; and the common:. That way, when someone maintaining the program adds a case F which wants to execute the BCD-common-code, they can't accidently let D-code fall through to F-code. Frank Adams ihnp4!philabs!pwa-b!mmintl!franka Multimate International 52 Oakland Ave North E. Hartford, CT 06108