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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no 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-17 16:46:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!kibo.news.demon.net!demon!psiuk-p2!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Announce: Grace project site operational Date: Fri, 17 May 2002 09:12:22 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1021641143 8995 136.170.200.133 (17 May 2002 13:12:23 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 17 May 2002 13:12:23 GMT 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 Xref: archiver1.google.com comp.lang.ada:24322 Date: 2002-05-17T13:12:23+00:00 List-Id: I see what you're saying and I could see how it would be useful in specific environments where you have a limited set of units you're using. I think there would be a problem attempting to come up with something more general for a package like Grace that wants to provide utility for as yet TBD applications. There the proliferation of operations and the ability to substitute subtypes for types could be problematic. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com wrote in message news:MqZE8.20$Td3.11723926@newssvr21.news.prodigy.com... > Think of type dimension checking as a special check performed by a > special tool - your compiler. If you currently have a nice efficient > package My_Units is -- version without any dimension checking > subtype Miles is Float range ... > subtype Hours is Float range ... > end My_Units; > then, when it's time to check that the dimensions are OK, replace that > package with > package My_Units is -- version to check if I screwed up dimensions > type Miles is new Float range ... > type Hours is new Float; > -- appropriate '*' and '/' functions > end My_Units; > and see if your program still compiles. If not, fix the problem. When > it does compile, switch back to the original package My_Units and > compile to generate code.