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,56c32e2629d629a X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: What's syntax for a case statement? Date: 1997/06/12 Message-ID: #1/1 X-Deja-AN: 247925132 References: <5nk6gu$gbp@prometheus.acsu.buffalo.edu> <5nllti$lgb@zdi.informatik.uni-stuttgart.de> <33A0B0BE.30A8@dynamite.com.au> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-06-12T00:00:00+00:00 List-Id: Alan said < is when => ; when | => ; when .. => ; [when others => ; end case; >> This is completely wrong, there is no requirement that the expression after the case be the name of a discrete variable, it is a general expression. If you are going to post syntax that can easily be looked up, at least do it right! Also, your style of using examples, rather than proper syntax, for the when phrases is also confusing. It is hard to understand for example that it is fine to have when x | y .. z =>