comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Dowie" <martin.dowie@baesystems.com>
Subject: Re: Dimensions and fixed point types
Date: Wed, 9 Jun 2004 08:47:29 +0100
Date: 2004-06-09T08:47:29+01:00	[thread overview]
Message-ID: <40c6bf5c_1@baen1673807.greenlnk.net> (raw)
In-Reply-To: mailman.77.1086765132.391.comp.lang.ada@ada-france.org

"Duncan Sands" <baldrick@free.fr> wrote in message
news:mailman.77.1086765132.391.comp.lang.ada@ada-france.org...
> Fixed point types have a remarkable property:
> you can multiply any two of them to get a third.
> You can multiply apples and oranges and get
> bananas.  This goes against type safety.
[snip]
> function "*" (Left : Apples; Right : Oranges) return Banana;
> pragma Import (Intrinsic, "*");

I think this is being addressed by the ARG in AI-364

http://www.ada-auth.org/cgi-bin/cvsweb.cgi/AIs/AI-00364.TXT?rev=1.6

Still a work item though...






  reply	other threads:[~2004-06-09  7:47 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 [this message]
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
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox