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,6fef13d7f3dbdbd5,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-05 03:33:20 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!transit.news.xs4all.nl!not-for-mail From: Fraser Wilson Newsgroups: comp.lang.ada Subject: Safe Ada Unit Handling -- Macks 0.1 Date: Wed, 05 Jun 2002 12:34:48 +0200 Organization: XS4ALL Internet BV Message-ID: <3CFDE948.7080100@blancolioni.org> NNTP-Posting-Host: a80-126-24-12.adsl.xs4all.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news1.xs4all.nl 1023273199 2698 80.126.24.12 (5 Jun 2002 10:33:19 GMT) X-Complaints-To: abuse@xs4all.nl NNTP-Posting-Date: 5 Jun 2002 10:33:19 GMT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc3) Gecko/20020523 X-Accept-Language: en-us, en Xref: archiver1.google.com comp.lang.ada:25342 Date: 2002-06-05T10:33:19+00:00 List-Id: Macks is a physical units preprocessor. Given a set of fundamental units, and other units derived from them, Macks produced Ada package specfications and bodies which implement these relationships in a type-safe way. New features for this version: - cartesian vectors, generated as records or arrays with arbitrary indexes/element names. - vector operations: addition, subtraction, dot product, and cross product if the vector is three dimensional. - unit subtypes - user header insertion - new operator: Unit / Unit -> Scalar - cosmetic fixes - source re-organisation and a Makefile - a manual! You can grab it from http://www.blancolioni.org/ada/macks/macks-0.1-src.tar.gz or http://www.blancolioni.org/ada/macks/macks-0.1-src.zip If you don't have texinfo installed, remove the 'doc' target from the top of the Makefile, and read the guide at http://www.blancolioni.org/ada/macks/macks.html instead. I'm not entirely convinced that Macks solves anything other than a theoretical problem; in other words, it's a possiblility that without Macks you could write erroneous code and never know, but I wonder if this actually happens. In any case, it can no longer be said that C++ has a resonable compile time implementation of typed units and Ada doesn't, which was really the point for me :-) cheers, Fraser.