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 01:41:35 PST From: "Martin Dowie" Newsgroups: comp.lang.ada References: <4519e058.0205140718.3ddb1b2a@posting.google.com> <3CE15D0A.3050100@mail.com> Subject: Re: Announce: Grace project site operational Date: Wed, 15 May 2002 09:44:50 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: sg2c11210.sd.edinbr.gmav.gecm.com Message-ID: <3ce21f37$1@pull.gecm.com> X-Trace: pull.gecm.com 1021452087 sg2c11210.sd.edinbr.gmav.gecm.com (15 May 2002 09:41:27 +0100) Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!newspeer.clara.net!news.clara.net!btnet-peer!btnet-peer0!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!not-for-mail Xref: archiver1.google.com comp.lang.ada:24077 Date: 2002-05-15T09:44:50+01:00 List-Id: "Hyman Rosen" wrote in message news:3CE15D0A.3050100@mail.com... [snip] > I first saw this idiom in _Scientific and Engineering C++_ > by Bartion & Nackman. > > template > struct Unit > { > RepType value; > explicit Unit(value) : value(value) { } > Unit operator+(Unit other) > { return Unit(value + other.value); } > Unit operator-(Unit other) > { return Unit(value - other.value); } > }; [snip] Didn't someone post an Ada units package similar to this a while back (> 1 year)?..