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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9ce095aba33fe8d0 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Negative float problem Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1130351574.313991.229420@g14g2000cwa.googlegroups.com> <10mspnley7gzu$.1swtj67sv0ldr$.dlg@40tude.net> Date: Tue, 1 Nov 2005 15:27:30 +0100 Message-ID: <38tcpxwxfigo$.18ysjyp9ml92c$.dlg@40tude.net> NNTP-Posting-Date: 01 Nov 2005 15:27:32 MET NNTP-Posting-Host: 5aa684fe.newsread2.arcor-online.net X-Trace: DXC=BF1Mb[I\=]6MXCiXZcgNO?Q5U85hF6f;4jW\KbG]kaM8Q>n?D9BSA]R?8j5[6LHn;2LCV>7enW;^6ZC`4<=9bOTW=MN> X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:6085 Date: 2005-11-01T15:27:32+01:00 List-Id: On Tue, 01 Nov 2005 12:06:19 +0100, Maciej Sobczak wrote: > Dmitry A. Kazakov wrote: > >>>>Further, parameterless function call is >>>>indistinguishable from name. >>> >>>So? ADL is about *arguments* and does not apply to parameterless >>>functions at all. >> >> But in A.B.C (argument) you do not know whether B is a package, function >> name or variable. > > ADL applies only to unqualified names. A.B.C is a qualified name, or can be, or not. >> Some legal code might become illegal, because some invisible before >> operations would contribute to overloading. > > Could you please give an example of such code? package A is X : Integer; end A; package B is X : Integer; function "+" (Left, Right : Integer) return Integer; end B; with A, B; ... A.X + B.X -- Unambiguous now > Remember that we're considering unqualified names. Note also that ADL is > performed *only* when the normal lookup fails (it's an extension > mechanism). I mentioned in my previous post that stratified visibility rules is a kludge. And anyway it will not work as the example below shows: package A is X : Integer; function "+" (Left, Right : Integer) return Integer; end A; package B is X : Integer; function "+" (Left, Right : Integer) return Integer; end B; with A, B; ... A.X + B.X -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de