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,4fb6ec6cd054de65 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-13 06:18:38 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: constrained subtypes Date: 13 Mar 2002 06:18:37 -0800 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0203130618.5b437598@posting.google.com> References: NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1016029118 30959 127.0.0.1 (13 Mar 2002 14:18:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 13 Mar 2002 14:18:38 GMT Xref: archiver1.google.com comp.lang.ada:21158 Date: 2002-03-13T14:18:38+00:00 List-Id: Christoph Grein wrote in message > Nice exegesis, I also thought it was this way. But when I looked into the RM, I found only: <> Why look in chapter 4 here. If you are interested in case statements, look in chapter 5 at the section on case statements. Sometimes it is indeed hard to find things in the RM, but not in this case! 5.4 Case Statements 7 If the expression is a name (including a type_conversion or afunction_call) having a static and constrained nominal subtype, or is a qualified_expression whose subtype_mark denotes a static and constrained scalar subtype, then each non-others discrete_choice shall cover only values in that subtype, and each value of that subtype shall be covered by some discrete_choice (either explicitly or by others). Pretty clear if you ask me, obviously (x) is not of the syntactic form of a name. > I would like to see a formal exegesis with the RM. Well this is hardly obscure enough to warrant the term exegesis :-)