comp.lang.ada
 help / color / mirror / Atom feed
From: christoph.grein@eurocopter.com
To: comp.lang.ada@ada-france.org
Subject: Re: Macks - adding unit constants?
Date: Mon, 3 Nov 2003 12:57:48 +0100 (MET)
Date: 2003-11-03T12:57:48+01:00	[thread overview]
Message-ID: <mailman.260.1067861497.25614.comp.lang.ada@ada-france.org> (raw)

> As opposed to what?  It still doesn't tell which units we are working
> in.  Dimensionless numbers should not be able to suddenly become
> dimensioned numbers without som kind of explicit conversion.

Why not:

   Dist: constant Meter := +0.000_86;

Or use Dmitry Kazakov's or my method:

  Dist: constant SI := 0.000_86 * Meter;
or
  Dist: constant SI := 0.86 * Milli * Meter;

See http://home.T-Online.de/home/Christ-Usch.Grein/Ada/

You'll find references to four methods to use dimensioned items (one of them of 
course Macks).



             reply	other threads:[~2003-11-03 11:57 UTC|newest]

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

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