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-15 09:12:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: dennison@telepath.com (Ted Dennison) Newsgroups: comp.lang.ada Subject: Re: Announce: Grace project site operational Date: 15 May 2002 09:12:58 -0700 Organization: http://groups.google.com/ Message-ID: <4519e058.0205150812.482531d@posting.google.com> References: NNTP-Posting-Host: 65.115.221.98 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1021479179 20410 127.0.0.1 (15 May 2002 16:12:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 15 May 2002 16:12:59 GMT Xref: archiver1.google.com comp.lang.ada:24102 Date: 2002-05-15T16:12:59+00:00 List-Id: "Grein, Christoph" wrote in message news:... > All "solutions" to this problem I've seen so far can be split into three > methods: > > 1. Use subtypes with proper names like Meter, Kilogramm, Ohm just for > documentation, i.e. no type checking. ... > My feeling is that method 1 should be the preferred one. two is out (expontial > explosion of number of operations, rational exponents cannot be handled), 3 if > execution time does not matter. That's the way everyone I've ever seen tackle the problem end up going. Yo do get range checking, so you aren't entirely check-free. -- T.E.D. Home - mailto:dennison@telepath.com (Yahoo: Ted_Dennison) Homepage - http://www.telepath.com/dennison/Ted/TED.html (down)