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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1e4bb63e08046e1a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-25 10:13:02 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: jpwoodruff@irisinternet.net (John Woodruff) Newsgroups: comp.lang.ada Subject: Re: In case statment? <...> when others Date: 25 Oct 2002 10:13:02 -0700 Organization: http://groups.google.com/ Message-ID: <34defe4d.0210250913.792992ec@posting.google.com> References: <3DB8204B.2080804@attbi.com> <3DB89B83.2060609@acm.org> NNTP-Posting-Host: 216.126.136.65 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1035565982 16741 127.0.0.1 (25 Oct 2002 17:13:02 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 25 Oct 2002 17:13:02 GMT Xref: archiver1.google.com comp.lang.ada:30138 Date: 2002-10-25T17:13:02+00:00 List-Id: Preben Randhol wrote in message news:... <...> > Now my next question is should a case statment be: > > case Number is > > when others => > null; > end case; > > Or simply: > > case Number is > > end case; > > I'm leaning towards the latter as this is also how ada-mode does it. I urge you to follow your leaning. My reasoning is that (in my experience) it is fairly common to extend an enumeration; By omiting the "others", I will be sure to be reminded that I need to revisit the case statement(s). John