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,3727f1245650af64 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-20 04:24:17 PST Path: archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: Pascal to ADA Date: Thu, 20 Nov 2003 12:24:16 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 1069331056 15740 217.17.192.37 (20 Nov 2003 12:24:16 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Thu, 20 Nov 2003 12:24:16 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:2726 Date: 2003-11-20T12:24:16+00:00 List-Id: * Tilman Gloetzner wrote: > 1) what is a effecient way of rewriting the following code fragement in ADA > ? With the absolute keyword, Pascal effectively casts > N, M, and R from a 4 byte integer type to an array of 4 bytes by an address > access. I guess to implement the same mechanism in > ADA is not in line with ADA's philosophy. > > 2) How do I mask out bits in a (unsigned) number type, as logical operators > work only on booleans ? type Do_It_Right is mod 2**(4*8);