From: Duncan Sands <baldrick@free.fr>
To: comp.lang.ada@ada-france.org
Cc: Hyman Rosen <hyrosen@mail.com>
Subject: Re: Dimensions and fixed point types
Date: Fri, 11 Jun 2004 21:10:56 +0200
Date: 2004-06-11T21:10:56+02:00 [thread overview]
Message-ID: <mailman.93.1086981064.391.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <xemyc.11946$wi2.4321@nwrdny01.gnilink.net>
On Friday 11 June 2004 19:47, Hyman Rosen wrote:
> Duncan Sands wrote:
> > On Friday 11 June 2004 09:26, Hyman Rosen wrote:
> >>You appear to imply that multiplying apples and apples
> >>to get apples, on the other hand, *is* "type safe". Why?
> >
> > I implied no such thing.
>
> Well, here's what you said:
> > It seems to me that a much better approach would be
> > to say that multiplication between different fixed
> > point types is NOT automatically defined
>
> This certainly implies that you believe that multiplication
> of a fixed point type with itself should be automatically
> defined. How else is one to read this?
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.
Ciao,
Duncan.
next prev parent reply other threads:[~2004-06-11 19:10 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 [this message]
2004-06-12 3:40 ` Robert I. Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox