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,74a56083ffbe573d X-Google-Attributes: gid103376,public From: Ken Garlington Subject: Re: Zoo question Date: 1996/08/13 Message-ID: <32106E34.5A7E@lmtas.lmco.com>#1/1 X-Deja-AN: 173956651 references: <320F16B6.6944@lmtas.lmco.com> content-type: text/plain; charset=us-ascii organization: Lockheed Martin Tactical Aircraft Systems mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.02 (Macintosh; I; 68K) Date: 1996-08-13T00:00:00+00:00 List-Id: Chris Morgan wrote: > > In article <320F16B6.6944@lmtas.lmco.com> Ken Garlington > writes: > > Here's a little brain teaser we received recently. Assuming no typos or > other obvious syntax errors, will the Fill procedure work in Ada 83? > > I say yes because the sneaky begin starts a block with an exception > handler which catches the constraint_error of using 'succ on the last > enumerated value, so as far as the loop is concerned get_next_animal > does just that and it doesn't care about the exception. > That certainly seems the intuitively obvious answer to me. Does anyone vote for a row of cages filled with 1 .. Cages'Last? -- LMTAS - "Our Brand Means Quality"