comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com (Robert Dewar)
Subject: Re: constrained subtypes
Date: 13 Mar 2002 06:18:37 -0800
Date: 2002-03-13T14:18:38+00:00	[thread overview]
Message-ID: <5ee5b646.0203130618.5b437598@posting.google.com> (raw)
In-Reply-To: mailman.1016000642.11581.comp.lang.ada@ada.eu.org

Christoph Grein <christoph.grein@eurocopter.com> wrote in message > Nice exegesis, I also thought it was this way. But when I looked into the RM, I found only:

<<irrelevant quotes from chapter 4 snipped>>

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 :-)



  reply	other threads:[~2002-03-13 14:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-13  6:22 constrained subtypes Christoph Grein
2002-03-13 14:18 ` Robert Dewar [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-03-14 11:01 Christoph Grein
2002-03-12 10:37 Christoph Grein
2002-03-12  7:59 Christoph Grein
2002-03-11 15:00 George Stevens
2002-03-11 16:16 ` Stephen Leake
2002-03-11 16:50 ` Jeffrey Carter
2002-03-11 21:05 ` Anh_Vo
2002-03-12  9:39 ` George Stevens
2002-03-12 10:38   ` Martin Dowie
2002-03-12 11:57     ` George Stevens
2002-03-12 12:02       ` Martin Dowie
2002-03-12 12:03       ` Martin Dowie
2002-03-12 16:42   ` Jeffrey Carter
2002-03-13 22:09 ` Wannabe h4x0r
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox