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-Thread: 103376,5e54ec0ce937978 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: String literals and wide_string literals - how? References: <1177063665.093083.241580@e65g2000hsc.googlegroups.com> <2oPWh.9599$n_.6781@attbi_s21> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1177292698 12.201.97.213 (Mon, 23 Apr 2007 01:44:58 GMT) NNTP-Posting-Date: Mon, 23 Apr 2007 01:44:58 GMT Organization: AT&T ASP.att.net Date: Mon, 23 Apr 2007 01:44:58 GMT Xref: g2news1.google.com comp.lang.ada:15228 Date: 2007-04-23T01:44:58+00:00 List-Id: Simon Wright wrote: > > I don't quite see the last sentence -- typically the bit numbering > depends on the endianness, very annoying -- not sure whether new Ada > sorts that one out. Ada now recommends that compilers support both bit orders. But even if a compiler doesn't, relating the indices of such a packed array to the bit numbering scheme for the target means you know what they mean without having to experiment. > For the rest, I quite agree; _much_ easier to map the C condition > "(x & (1<<2))" to "(X and 2#00000100#) /= 0". "X (X'First + 2)" seems easier and clearer to me. Your version is preferable because it is portable. -- Jeff Carter "Mr. President, we must not allow a mine-shaft gap!" Dr. Strangelove 33