comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: Question about 'valid
Date: Tue, 20 Mar 2001 13:44:04 -0600
Date: 2001-03-20T19:43:02+00:00	[thread overview]
Message-ID: <998bs6$k4t$1@hobbes2.crc.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:

'Valid is defined ONLY for Scalar types.

>
> 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.

>
> I am currently very interested in validating aribitrary bit patterns
> that arrive via memory mapped ports and want to really understand the
> role of 'valid in these cases.
>
> TIA
>
> Peter
>
> --
> --------------------------------------------------------------------------
-
>       __         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/
>
> --------------------------------------------------------------------------







  parent reply	other threads:[~2001-03-20 19:44 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
2001-03-20 19:44 ` David C. Hoos, Sr. [this message]
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