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!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s21.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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <2oPWh.9599$n_.6781@attbi_s21> NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1177272958 12.201.97.213 (Sun, 22 Apr 2007 20:15:58 GMT) NNTP-Posting-Date: Sun, 22 Apr 2007 20:15:58 GMT Organization: AT&T ASP.att.net Date: Sun, 22 Apr 2007 20:15:58 GMT Xref: g2news1.google.com comp.lang.ada:15224 Date: 2007-04-22T20:15:58+00:00 List-Id: Simon Wright wrote: > > It may not be useful but in some applications it's essential to know. > > And it seems to me that a compiler that thought 2#00110011# was > acceptable probably wouldn't itself be acceptable. Why not? It adheres to the well defined and portable semantics Duff mentioned. My point was that these kinds of arrays are promoted as a better way to access individual bits than logical operations and shifts. But unless you have some definition of which bit "Y (Y'First)" accesses, they're not useful for that because they're extremely compiler dependent, while logical operations and shifts are portable across compilers and targets. Some sort of correspondence with the bit numbers used in record representation clauses would be OK. -- Jeff Carter "Mr. President, we must not allow a mine-shaft gap!" Dr. Strangelove 33