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.6 required=5.0 tests=BAYES_20,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,de608e4240f9b8f8 X-Google-Attributes: gid103376,public From: hdhil@aol.com (HDhil) Subject: Re: Ada function Date: 2000/03/14 Message-ID: <20000314005317.01708.00002096@ng-bg1.aol.com>#1/1 X-Deja-AN: 597221370 References: <952768687.972088@srv1.space.net.au> Organization: AOL http://www.aol.com Newsgroups: comp.lang.ada X-Admin: news@aol.com Date: 2000-03-14T00:00:00+00:00 List-Id: Rees, There is a case statement in Ada. It takes the form CASE IS WHEN => WHEN => . . WHEN => END CASE; Note that must be a discrete type, yielding an integer, Boolean, character or user-defined enum type. Also, every possible case value of the must be covered in one and only one WHEN clause. You can use WHEN OTHERS as a final choice at the end of the CASE statement to cover remaining values. Hope this helps. -Harry