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,FREEMAIL_FROM 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-23 01:55:47 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!postnews1.google.com!not-for-mail From: 18k11tm001@sneakemail.com (Russ) Newsgroups: comp.lang.ada Subject: Re: Safe Units Handling in Ada Date: 23 May 2002 01:55:47 -0700 Organization: http://groups.google.com/ Message-ID: References: <3CEB7124.4050604@blancolioni.org> <01HW.B91197820000C3D90E449050@netnews.netaxs.com> NNTP-Posting-Host: 63.194.87.148 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1022144147 24390 127.0.0.1 (23 May 2002 08:55:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 23 May 2002 08:55:47 GMT Xref: archiver1.google.com comp.lang.ada:24565 Date: 2002-05-23T08:55:47+00:00 List-Id: William C. Brennan wrote in message news:<01HW.B91197820000C3D90E449050@netnews.netaxs.com>... > On Wed, 22 May 2002 6:21:24 -0400, Fraser wrote > (in message <3CEB7124.4050604@blancolioni.org>): > function "/" > (Left : Kilogram; -- We want this one abstract too. > Right : Kilogram) > return Kilogram > is abstract; > > Wouldn't it be also useful to define the operator: > > function "/" > (Left : Kilogram; > Right : Kilogram) > return Float_Type; > > (where Float_Type is used throughout as a unitless scalar)? Absolutely. Dividing kg by kg should obviously yield a scalar.