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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6339fea48a1b8cda X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!postnews.google.com!34g2000hsh.googlegroups.com!not-for-mail From: Mike Silva Newsgroups: comp.lang.ada Subject: Re: Enumeration representation clause surprise. Date: Thu, 12 Jun 2008 16:36:19 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0120c799-fd71-41dc-bad1-c5e4f71c87f4@34g2000hsh.googlegroups.com> References: <0cbb6daf-01e9-40f5-855c-4f1d45cb0096@m73g2000hsh.googlegroups.com> <87abhs6qyj.fsf@willow.rfc1149.net> <55613982-679e-419d-8656-03b549393289@w4g2000prd.googlegroups.com> <871w346k4j.fsf@willow.rfc1149.net> <4a84770f-e273-41ad-a8ef-f22a9896b544@i36g2000prf.googlegroups.com> <48502e38$0$23821$4f793bc4@news.tdc.fi> <0d642988-cb65-412d-88b2-806e1a5b0ff3@34g2000hsh.googlegroups.com> <48516de5$0$7547$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: 71.51.178.124 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1213313780 18596 127.0.0.1 (12 Jun 2008 23:36:20 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 12 Jun 2008 23:36:20 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 34g2000hsh.googlegroups.com; posting-host=71.51.178.124; posting-account=QgO_5wkAAACZKtAvkb3f1VNDm9C58qLr User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:682 Date: 2008-06-12T16:36:19-07:00 List-Id: On Jun 12, 4:52=A0pm, Simon Wright wrote: > Mike Silva writes: > > I wonder then if this is an error at all. =A0IANALL, but if the > > program makes available your specified values when queried with the > > proper mechanism (in this case, unchecked conversion), then I don't > > see what difference it makes how it stores the representations in > > raw memory. > > The only reason I have ever written representation clauses is to > ensure that the contents of raw memory are what some external hardware > (or software, eg at the other end of a network connection) requires > them to be. OK, I understand that - so how would you pass this raw memory to the external hardware or software? And in this case, how did the use of biased representations ever get into compilers at all? Is there any possible use of biased representations that does not fail the requirement you have established? I'm not arguing, just trying to understand the issue. Mike