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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bd45e29f9dafca87 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: bitwise comparators Date: 2000/01/15 Message-ID: #1/1 X-Deja-AN: 573150080 Content-Transfer-Encoding: 7bit References: <3880D375.7E363123@hotmail.com> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-ELN-Date: Sat Jan 15 15:32:40 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 947979160 158.252.123.110 (Sat, 15 Jan 2000 15:32:40 PST) Organization: EarthLink Network, Inc. MIME-Version: 1.0 NNTP-Posting-Date: Sat, 15 Jan 2000 15:32:40 PST Newsgroups: comp.lang.ada Date: 2000-01-15T00:00:00+00:00 List-Id: Alexander Van Hecke wrote in message news:3880D375.7E363123@hotmail.com... > hello, > > I want to do the following : > OK_to_proceed : BOOLEAN := FALSE; > data : Unsigned_8; > > while (not OK_to_proceed) loop > -- do stuff > OK_to_proceed := (data BITWISE AND 2#1#); > end loop; > > so I want to exit the loop if bit one of data is set, but I don't know > what the bitwise and is! Do you have a copy of the Ada Language Reference Manual? If so, a search for bit-wise reveals that bit-wise logical operators are defined for modular types. If not, the Reference Manual is distributed in Windows Help file format with GNAT for winnt, or is available at ftp://ftp.cs.nyu.edu/pub/gnat/rm9x-v5.95/ in two formats, and browsable HTML form at http://www.adapower.com/rm95/index.html It's amazing how many questions can be answered by perusing the readily-available resources.