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-Thread: 103376,e568be4d901b052d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII X-Received: by 10.224.184.11 with SMTP id ci11mr18039125qab.1.1356724232777; Fri, 28 Dec 2012 11:50:32 -0800 (PST) Received: by 10.49.62.164 with SMTP id z4mr5253434qer.34.1356724232752; Fri, 28 Dec 2012 11:50:32 -0800 (PST) Path: k2ni3151qap.0!nntp.google.com!ee4no3179550qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 28 Dec 2012 11:50:32 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.229.206.178; posting-account=eLk0BgoAAAA-yA75xm1L7heSizMaESVg NNTP-Posting-Host: 71.229.206.178 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9343de35-328f-4d43-9fb4-d77b05c950e8@googlegroups.com> Subject: Re: Dimensions in Ada From: jpwoodruff@gmail.com Injection-Date: Fri, 28 Dec 2012 19:50:32 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-12-28T11:50:32-08:00 List-Id: On Friday, December 28, 2012 8:22:43 AM UTC-7, =C1lex R. Mosteo wrote: > I have vague remembrances of past discussions about unit systems in Ada; = at=20 >=20 > least three ways of doing it, none of them totally satisfying. >=20 I suggest you examine the Unit and Measure types implemented by Dmitry Kazakov (http://www.dmitry-kazakov.de/ada/units.htm) Two types are used for dealing with units. The type Unit denotes the dimension of a physical entity. The type Measure represents some quantity of a physical unit. Dmitry provides a formidable body of services on physically dimensioned quantities, including math operations and I/O. =20 Well tested and documented; a thoroughly professional product. John