From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,99222a5bd46ef3c9 X-Google-Attributes: gid103376,public From: Spam Hater Subject: Re: GOTO considered necessary (reworked) Date: 1997/06/18 Message-ID: <33A84643.EAC@no.such.com>#1/1 X-Deja-AN: 249412387 Sender: usenet@most.fw.hac.com (News Administration) X-Nntp-Posting-Host: sparc02 References: <5nn2fm$11dk$1@prime.imagin.net> <33A58C79.1C7A@sprintmail.com> Organization: See Warning Below! Newsgroups: comp.lang.ada Date: 1997-06-18T00:00:00+00:00 List-Id: > >We have only two methods of handling such spaghetti sequences in typical > >PL's, the code+goto representation, or the loop-case representation. > > I can think of others: E.g. an array of pointers-to-procedures, indexed > by state. Wouldn't that be a two-dimensional array indexed by current state and transition trigger, with pointers-to-procedures and next state in each cell? -- ---------------------------------------------------------------------- Wes Groleau, Hughes Defense Communications, Fort Wayne, IN USA Senior Software Engineer - AFATDS Tool-smith Wanna-be Don't send advertisements to this domain unless asked! All disk space on fw.hac.com hosts belongs to either Hughes Defense Communications or the United States government. Using email to store YOUR advertising on them is trespassing! ----------------------------------------------------------------------