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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4b06f8f15f01a568 X-Google-Attributes: gid103376,public From: Richard D Riehle Subject: Re: Expressive Case Statements (was: Software landmines) Date: 1998/09/03 Message-ID: <6skqle$s5n@dfw-ixnews7.ix.netcom.com>#1/1 X-Deja-AN: 387329785 References: <902934874.2099.0.nnrp-10.c246a717@news.demon.co.uk> <6r1glm$bvh$1@nnrp1.dejanews.com> <6r9f8h$jtm$1@nnrp1.dejanews.com> <6renh8$ga7$1@nnrp1.dejanews.com> <6rf59b$2ud$1@nnrp1.dejanews.com> <6rfra4$rul$1@nnrp1.dejanews.com> <35DBDD24.D003404D@calfp.co.uk> <6sbuod$fra$1@hirame.wwa.com> <35f51e53.48044143@ <904556531.666222@miso.it.uq.edu.au> <35EAEC47.164424A7@s054.aone.net.au> <6sgn8l$7aq$1@nnrp1.dejanews.com> <6sh487$lnq$1@nnrp1.dejanews.com> <6shit4$eaj@dfw-ixnews5.ix.netcom.com> <35ecc519.37879718@SantaClara01.news.InterNex.Net> <6sk1f5$o9v@dfw-ixnews9.ix.netcom.com> <35eda0d0.15935137@SantaClara01.news.InterNex.Net> Organization: ICGNetcom X-NETCOM-Date: Wed Sep 02 8:16:30 PM CDT 1998 Newsgroups: comp.lang.ada Date: 1998-09-02T20:16:30-05:00 List-Id: In article <35eda0d0.15935137@SantaClara01.news.InterNex.Net>, tmoran@bix.com (Tom Moran) wrote: >> condition condition entry >> stub stub >> ------------------------------------------ >> c1 | T T T T F F F F >> ----|-------------------------------------- >> c2 | T T F F F F T T >> ----|-------------------------------------- >> c3 | T F T F F T T F >> ----|------------------------------------- >> ========================================== >> A1 | X X X X >> ----|-------------------------------------- >> A2 | X X >> ----|-------------------------------------- >> A3 | X X X >> ----|-------------------------------------- >> Action Action Entry >> Stub Stub > Does this mean that in case T-T-T you want to perform *both* actions >A1 and A3, and that case T-F-F (et al) can never occur (ie, raises >Program_Error or something)? Or am I misunderstanding this notation? The decision entries are read vertically as you note. In those situtations where there are no action entries, no action is required. With the COBOL Evaluate statment one would only code "when" statements for those actions that had entries. It is, of course, legal to have an "others" condition which accomodates those decision entries for which there are no valid actions. Richard Riehle richard@adaworks.com http://www.adaworks.com