From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: On naming space and the good use of qualified expression
Date: Fri, 19 Jan 2018 10:38:24 -0800 (PST)
Date: 2018-01-19T10:38:24-08:00 [thread overview]
Message-ID: <589efeb8-460d-4408-8113-07ca13d5487e@googlegroups.com> (raw)
In-Reply-To: <310b1dea-459b-4a8b-b249-5bb63ea43512@googlegroups.com>
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.
next prev parent reply other threads:[~2018-01-19 18:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-19 17:51 On naming space and the good use of qualified expression Mehdi Saada
2018-01-19 18:37 ` Niklas Holsti
2018-01-19 18:38 ` AdaMagica [this message]
2018-01-19 18:55 ` Jeffrey R. Carter
2018-01-19 23:23 ` Mehdi Saada
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox