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-11 06:51:10 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mailgate.org!newsfeed.wirehub.nl!news-x2.support.nl!psinet-eu-nl!psiuk-p4!uknet!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, 10 May 2002 11:38:14 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <3CD88FBD.4070706@telepath.com> <3CD91E31.1060004@telepath.com> <3CDBD673.FF452A3D@otelco.net> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1021045096 25613 136.170.200.133 (10 May 2002 15:38:16 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 10 May 2002 15:38:16 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:23898 Date: 2002-05-10T15:38:16+00:00 List-Id: "Larry Hazel" wrote in message news:3CDBD673.FF452A3D@otelco.net... > > > I remember starting in the middle of an Ada 83 project. There was a separate > type defined for everything. An old Elvis song kept going through my head. But > instead of "girl happy", I was substituting "type happy". > Been there. Done that. Got the t-shirt. The problem is coming up with a guideline or some other sort of rule of thumb that offers constructive advice (especially to the beginner) as to when creating more types isn't really helpful. It really is a kind of an "art". Example: There are times when one might want to have unique types for Volts and Amps and Ohms (reading from different sensors) and there are times when this would only be extremely painful (when calculating typical electrical relationships) and what exactly would the type conversions mean anyway? If I say "Amps := Amps_Type (Volts) / Amps_Type (Ohms) ;" am I really converting volts to amps and ohms to amps as it appears? Not exactly as it reads. So there can be an awful large amount of gray area in deciding when to create types and when doing so is going to just make things worse. But I can usually spot "worse" when I see it. :-) MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com