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,6339fea48a1b8cda X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!feed.xsnews.nl!border-1.ams.xsnews.nl!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!noris.net!nntp.ilk.net!not-for-mail From: Markus Schoepflin Newsgroups: comp.lang.ada Subject: Re: Enumeration representation clause surprise. Date: Fri, 13 Jun 2008 16:45:09 +0200 Organization: Customer of ILK Internet GmbH, Karlsruhe, Germany Message-ID: 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> <1c847838-26d7-4517-a010-1851aa12351a@m3g2000hsc.googlegroups.com> NNTP-Posting-Host: csdc.comsoft.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: nntp.ilk.net 1213368309 2369 212.86.205.70 (13 Jun 2008 14:45:09 GMT) X-Complaints-To: usenet@ilk.net NNTP-Posting-Date: Fri, 13 Jun 2008 14:45:09 +0000 (UTC) User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <1c847838-26d7-4517-a010-1851aa12351a@m3g2000hsc.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:694 Date: 2008-06-13T16:45:09+02:00 List-Id: Mike Silva wrote: > So that's why I'm wondering why compiler writers ever introduced biased > representations in the first place. I can't believe that the problem > with this approach has only been noticed in 2008. In the project where I was bitten by this, it is clearly not the first time that this problem has occurred. In my search for other occurrences of the problem in the full source code (a few million SLOC) of the system, I discovered an old comment dating back from 1996, indicating that they had the same issue back then. > Aren't biased representations fundamentally incompatible with "the > representation clearly *does* matter"? From my point of view, biased representations and representation clauses should be mutually exclusive. Whenever I care enough about the representation that I think it necessary to write a representation clause, the compiler shouldn't fiddle with that representation behind my back. Markus