From: "Robert I. Eachus" <rieachus@comcast.net>
Subject: Re: Dimensions and fixed point types
Date: Fri, 11 Jun 2004 23:40:55 -0400
Date: 2004-06-11T23:40:55-04:00 [thread overview]
Message-ID: <rbedncjGiMrV5lfd4p2dnA@comcast.com> (raw)
In-Reply-To: <mailman.93.1086981064.391.comp.lang.ada@ada-france.org>
Duncan Sands wrote:
> There is no contradiction. Not saying X is not the same
> as saying not X. However from a practical point of view,
> any proposal to not have multiplication be auto-defined
> between fixed point numbers of the same type would
> never be accepted, since such multiplication is defined
> in the case of integer and floating point types. So I didn't
> propose it. That doesn't mean I think that auto-defining
> such multiplication is a good idea. In many contexts
> multiplying two numbers of the same type makes no sense.
I have to agree with Hyman on this one. In Ada 83 and Ada 95
multiplication (or division) of a fixed-point parameter by Integer is
predefined, but there is no "function "*" (L,R: _T_) return _T_" as
there is for integer and floating-point types.
So such multiplication is not now "auto-defined". There is the
operation returning _universal_fixed_, and I agree that it would have
been nice if it did not have global visibility. Maybe it should be put
in a package within Standard so that you have to use prefix notation or
a use clause if you want to use it. The operation is necessary so that
users can define needed operations. The original visibility wasn't bad,
it is the added Ada 95 visibility that is a mistake. The current
position being discussed is a compromise. It will make some legal Ada
95 programs illegal, but only silly ones.
--
Robert I. Eachus
The ideology he opposed throughout his political life insisted that
history was moved by impersonal tides and unalterable fates. Ronald
Reagan believed instead in the courage and triumph of free men and we
believe it all the more because we saw that courage in him. -- George
W. Bush June 11, 2004
prev parent reply other threads:[~2004-06-12 3:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-09 7:11 Dimensions and fixed point types Duncan Sands
2004-06-09 7:47 ` Martin Dowie
2004-06-09 17:04 ` Robert I. Eachus
2004-06-11 7:16 ` Duncan Sands
2004-06-11 7:12 ` Duncan Sands
2004-06-11 7:26 ` Hyman Rosen
2004-06-11 7:46 ` Duncan Sands
2004-06-11 17:47 ` Hyman Rosen
2004-06-11 19:10 ` Duncan Sands
2004-06-12 3:40 ` Robert I. Eachus [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox