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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.62.194 with SMTP id l185mr35328900ioa.27.1516387105070; Fri, 19 Jan 2018 10:38:25 -0800 (PST) X-Received: by 10.157.11.12 with SMTP id a12mr444750ota.8.1516387104982; Fri, 19 Jan 2018 10:38:24 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!w142no790610ita.0!news-out.google.com!b73ni2546ita.0!nntp.google.com!g80no788970itg.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 19 Jan 2018 10:38:24 -0800 (PST) In-Reply-To: <310b1dea-459b-4a8b-b249-5bb63ea43512@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2003:c7:83cd:ca70:103c:3543:b507:7ea6; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 2003:c7:83cd:ca70:103c:3543:b507:7ea6 References: <310b1dea-459b-4a8b-b249-5bb63ea43512@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <589efeb8-460d-4408-8113-07ca13d5487e@googlegroups.com> Subject: Re: On naming space and the good use of qualified expression From: AdaMagica Injection-Date: Fri, 19 Jan 2018 18:38:25 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Body-CRC: 53531123 X-Received-Bytes: 2124 Xref: reader02.eternal-september.org comp.lang.ada:50008 Date: 2018-01-19T10:38:24-08:00 List-Id: Am Freitag, 19. Januar 2018 18:51:06 UTC+1 schrieb Mehdi Saada: Don't know why qualification does not work - too little information (no compilable code). Maybe the problems is somewhere else. But: > At that point of the program, I have three "/" operators visibles: > function "/" (A: T_Rational, B: T_Rational) return T_Rational; (1) > function "/" (A: T_Integer, B: T_Integer) return T_Integer; (2) > function "/" (A: T_Integer, B: T_Integer) return T_Rational; (3) When dealing with rational numbers, I do not see the purpose of (2). Why do you need truncation? Remove it and many problems will be gone. I have complete rational arithmetics package in http://www.christ-usch-grein.homepage.t-online.de/Ada/Dimension/SI.html which can handle any mixture of whole and rational numbers.