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: a07f3367d7,67bb3e29a77c25c6 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: pragma Pure (Ada) Date: Sun, 09 Oct 2011 00:54:28 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: fbKJmtPSSj0HseXh5EvkHg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.51 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news2.google.com comp.lang.ada:22301 Date: 2011-10-09T00:54:28+02:00 List-Id: Le Sat, 08 Oct 2011 03:37:53 +0200, Adam Beneschan a = =C3=A9crit: > So a special rule had to be added to make the language *prefer* the > "universal access" equality function over any other function. > > Hope this helps, Yes Adam, that help, but raise another question: the choice of the = anonymous access type operator is surprising to me. Why was the choice o= f = the more specific operator rejected ? I guess this may be because the = anonymous access type may not always be a valid parameter for the more = specific redefined operator of the named access type (ex. different = storage pool), but the choice of the least specific operator, is = counterintuitive, and unintuitive things may lead to bad surprised and = unexpected behavior (an an error at compile time is always preferable to= = an unexpected behavior). -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [Ep= igrams on = Programming =E2=80=94 Alan J. =E2=80=94 P. Yale University] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [Idem] Java: Write once, Never revisit