comp.lang.ada
 help / color / mirror / Atom feed
From: "Mark Lundquist" <mark@rational.com>
Subject: Re: Question about 'valid
Date: Tue, 20 Mar 2001 19:03:07 GMT
Date: 2001-03-20T19:03:07+00:00	[thread overview]
Message-ID: <LPNt6.596123$U46.18025037@news1.sttls1.wa.home.com> (raw)
In-Reply-To: 3AB78417.236D1AFF@praxis-cs.co.uk


Peter Amey <pna@praxis-cs.co.uk> wrote in message
news:3AB78417.236D1AFF@praxis-cs.co.uk...
>
> Can I ask for the collected wisdom on the following please:
>
> Given X : T;
>
> If X'Valid is true and X is scalar is it always true that:
>
> X in T;
> X >= T'First;
> X <= T'Last;
>

Yes.

> If the answer is yes then is it still true if T is an enumeration type
> with a representation clause which leads to holes in its representation.

Yes.

-- mark

P.S.  Can you explain what that little ASCII graphic is in your signature
footer?  I've always wondered about that!  To me, it looks like a
saxophone...
:-)

> --------------------------------------------------------------------------
-
>       __         Peter Amey, Product Manager
>         )                    Praxis Critical Systems Ltd
>        /                     20, Manvers Street, Bath, BA1 1PX
>       / 0        Tel: +44 (0)1225 466991
>      (_/         Fax: +44 (0)1225 469006
>                  http://www.praxis-cs.co.uk/
>
> --------------------------------------------------------------------------















%%%





  reply	other threads:[~2001-03-20 19:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-20 16:23 Question about 'valid Peter Amey
2001-03-20 19:03 ` Mark Lundquist [this message]
2001-03-20 19:44 ` David C. Hoos, Sr.
2001-03-29 23:56 ` Robert A Duff
2001-03-30  3:41   ` Ken Garlington
replies disabled

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