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,a5f77772dc1375a3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-22 09:44:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Safe Units Handling in Ada Date: 22 May 2002 12:37:30 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3CEB7124.4050604@blancolioni.org> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1022085865 396 128.183.220.71 (22 May 2002 16:44:25 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 22 May 2002 16:44:25 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:24533 Date: 2002-05-22T16:44:25+00:00 List-Id: Fraser writes: > Ah, the best-laid plans. The 'or' feature doesn't work, and the logic > was sloppy. So here's a new version which fixes that. > > http://blancolioni.org/ada/macks/macks-0.0.2-src.tar.gz > http://blancolioni.org/ada/macks/macks-0.0.2-src.zip Ok, I'll give that a try. I've done some thinking about how this will integrate with my Robotics code, and I'll need Cartesian vectors with units. I currently have: type Cart_Index_Type is (x, y, z); type Cart_Vector_Type is array (Cart_Index_Type) of Real_Type; function "*" (Left, Right : in Cart_Vector_Type) return Cart_Vector_Type; etc. Now I'll have to have Meters_Cart_Vector_Type and Velocity_Cart_Vector_Type, etc, with associated operations. Time will remain a scalar :). Any thoughts on extending macks to output that? I like the origin of "macks"; it warms my physics nerd heart :). Be sure to put it in the package somewhere. -- -- Stephe