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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cc4f25d878383cc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-06 14:38:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!cambridge1-snf1.gtei.net!news.gtei.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3C0FF376.2DC0C3E4@usa.com> From: Wes Groleau Reply-To: wgroleau@usa.com X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en,es-MX,es,pt,fr-CA,fr MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Dimensionality Checking (Ada 20XX) References: <3C0A5054.E74A82E7@worldnet.att.net> <9ugs4v$8d7lj$1@ID-25716.news.dfncis.de> <3c0cc931.16965562@News.CIS.DFN.DE> <36c6f8dd.0112061152.333c9de@posting.google.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 06 Dec 2001 17:38:46 -0500 NNTP-Posting-Host: 151.168.144.162 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1007678334 151.168.144.162 (Thu, 06 Dec 2001 16:38:54 CST) NNTP-Posting-Date: Thu, 06 Dec 2001 16:38:54 CST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:17538 Date: 2001-12-06T17:38:46-05:00 List-Id: Britt Snodgrass wrote: > (dimensionality) in Ada code would be most naturally implemented as > attributes of objects or types. The units of an object or type would > be specified with a representation clause. If unspecified, the unit I think this is a very good idea. But now to nitpick: > Accel : Magnitude; > for Accel'Unit use > ISO_Metric_Units.Meter / ISO_Metric_Units.Second**2; In some cases, might there be multiple ways to describe the units? Speed is Acceleration * Time but it is also Distance / Time. -- Wes Groleau http://freepages.rootsweb.com/~wgroleau