From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,730a7c3edfcae91f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-14 09:07:43 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Macks - adding unit constants? Date: 14 Oct 2003 12:01:38 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3F8514EC.8050702@crs4.it> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1066147498 26655 128.183.235.92 (14 Oct 2003 16:04:58 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 14 Oct 2003 16:04:58 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:833 Date: 2003-10-14T16:04:58+00:00 List-Id: Jacob Sparre Andersen 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