Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!rochester!bullwinkle!uw-beaver!uw-june!entropy!dataio!bright From: bright@dataioDataio.UUCP (Walter Bright) Newsgroups: net.lang Subject: Re: and if you put this in your language ... Message-ID: <928@dataioDataio.UUCP> Date: Tue, 11-Mar-86 12:48:19 EST Article-I.D.: dataioDa.928 Posted: Tue Mar 11 12:48:19 1986 Date-Received: Sat, 15-Mar-86 22:50:40 EST Reply-To: bright@dataio.UUCP (Walter Bright Organization: Data I/O Corp., Redmond WA Lines: 28 In article <367@tikal.UUCP> bobc@tikal.UUCP (Bob Campbell) writes: >I must beg to differ your flow-chart can be easily converted to a less >complex diagram (uses only two of the three basic units) as follows. >(Yours is on the Left :-) > > | | > A:/\ A:/\ > +---\/---+ +---\/---+ > +-+ | +-+ | > |X| | |X| | > +-+ | +-+ | > | | | | > B:/\ | B:/\ | > +--\/-------+ +--\/--+ | > +-+ +-+ +-+ +-+ +-+ > |Y| |Z| |Y| |Z| |Z| > +-+ +-+ +-+ +-+ +-+ > +-----+-----+ +--+---+ + > | | | > | +---+----+ > | > >Oh by the was don't bother to tell me that Z appears twice, I know that >it does, and in most cases the amount of code space wasted is not worth >saving (and in those cases where the code space is needed use a GOTO). A good compiler will transform the case on the right to the case on the left, the technique is called 'tail-merging'.