comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephe.Leake@nasa.gov>
Subject: Re: Macks - adding unit constants?
Date: 14 Oct 2003 12:01:38 -0400
Date: 2003-10-14T16:04:58+00:00	[thread overview]
Message-ID: <uy8vn6c65.fsf@nasa.gov> (raw)
In-Reply-To: 3F8514EC.8050702@crs4.it

Jacob Sparre Andersen <sparre@crs4.it> writes:

> I have just started to use Macks to generate packages for handling
> physical units.  I like the tool, but I would appreciate some method
> for handling different proportional units like km, m and mm _in_
> Macks.  

Exception for user interfaces, you should only use one length unit in
your code; it might as well be meter (m). Anything else leads to
confusion.

In user interfaces, you must use whatever the user wants, but you
should not need full Macks support for that, since you don't need to
do math on the displayed value; you only need to convert to/from the
standard unit

-- 
-- Stephe



  reply	other threads:[~2003-10-14 16:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-09  7:57 Macks - adding unit constants? Jacob Sparre Andersen
2003-10-14 16:01 ` Stephen Leake [this message]
2003-10-17 20:23   ` Jacob Sparre Andersen
2003-10-20 14:48     ` Preben Randhol
2003-11-03 11:45       ` Jacob Sparre Andersen
2003-11-03 14:24         ` Preben Randhol
2003-10-20 19:06     ` Stephen Leake
2003-11-03 11:45       ` Jacob Sparre Andersen
  -- strict thread matches above, loose matches on Subject: below --
2003-10-20 11:08 christoph.grein
2003-11-03 11:57 christoph.grein
2003-11-05 23:38 ` Jacob Sparre Andersen
2003-11-06  9:58 christoph.grein
replies disabled

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