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,1dd28d5040ded1f8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-16 06:54:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Announce: Grace project site operational Date: 16 May 2002 09:48:53 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3CE15D0A.3050100@mail.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1021557354 5370 128.183.220.71 (16 May 2002 13:55:54 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 16 May 2002 13:55:54 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:24194 Date: 2002-05-16T13:55:54+00:00 List-Id: tmoran@acm.org writes: > > template > > ... > The attempt below is is not as nice as "type Velocity is new Float > dimension Distance/Time;" and it needs parenthesization, but it works in > Ada 95. Each new unit requires a "type unit is " and each > legal pair needs two lines: a generic instantiation and a "use". You left out the "pragma Inline". We don't want code bloat from this :). The error messages look fairly nice. Next time I do a physics-based system, I think I'll try the automatically generated Units package approach. Could be some time next year, given my current schedule. -- -- Stephe