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,ac61eafbef01b3f9 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-20 13:08:04 PST Path: supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!news3.bellglobal.com!nntp.giganews.com!nntp2.aus1.giganews.com!NetNews1!attws2!attor2!attor1!ip.att.net!news.hitter.net!news!news.crc.com!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: Question about 'valid Date: Tue, 20 Mar 2001 13:44:04 -0600 Organization: CRC: A wholly owned subsidiary of Thermo Electron Message-ID: <998bs6$k4t$1@hobbes2.crc.com> References: <3AB78417.236D1AFF@praxis-cs.co.uk> NNTP-Posting-Host: 198.175.145.56 X-Trace: hobbes2.crc.com 985117382 20637 198.175.145.56 (20 Mar 2001 19:43:02 GMT) X-Complaints-To: abuse@crc.com NNTP-Posting-Date: 20 Mar 2001 19:43:02 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: supernews.google.com comp.lang.ada:5926 Date: 2001-03-20T19:43:02+00:00 List-Id: "Peter Amey" 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/ > > --------------------------------------------------------------------------