From: Fraser Wilson <newsfraser@blancolioni.org>
Subject: Re: Safe Units Handling in Ada
Date: Thu, 23 May 2002 18:15:13 +0200
Date: 2002-05-23T16:15:13+00:00 [thread overview]
Message-ID: <3CED1591.7090007@blancolioni.org> (raw)
In-Reply-To: 338040f8.0205230757.2150b881@posting.google.com
Dan Andreatta wrote:
> This also should return kg**2.
It will, but you have to ask for it (because generating all possible
unit combinations is infeasible and overkill).
For example, we can use the following definitions:
Kilogram is fundamental;
Square_Kilogram is Kilogram * Kilogram;
Macks will generate an Ada package containing, amonst other things, this
function:
function "*"
(Left : Kilogram;
Right : Kilogram)
return Square_Kilogram;
Fraser.
next prev parent reply other threads:[~2002-05-23 16:15 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-21 10:01 Safe Units Handling in Ada Fraser Wilson
2002-05-21 14:21 ` Pat Rogers
2002-05-21 15:58 ` Stephen Leake
2002-05-22 8:32 ` Fraser
2002-05-22 10:21 ` Fraser
2002-05-22 16:37 ` Stephen Leake
2002-05-23 10:16 ` Fraser
2002-05-23 16:03 ` Stephen Leake
2002-05-22 22:44 ` William C. Brennan
2002-05-23 8:55 ` Russ
2002-05-23 9:28 ` Fraser
2002-05-23 10:03 ` martin.m.dowie
2002-05-23 10:24 ` Fraser
2002-05-23 11:03 ` martin.m.dowie
2002-05-23 15:57 ` Dan Andreatta
2002-05-23 16:15 ` Fraser Wilson [this message]
2002-05-23 16:48 ` martin.m.dowie
2002-05-23 9:04 ` Russ
2002-05-23 10:01 ` Fraser Wilson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox