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,cc4f25d878383cc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-12-04 14:14:28 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Matthew Heaney" Newsgroups: comp.lang.ada Subject: Re: Another Idea for Ada 20XX Date: Tue, 4 Dec 2001 17:18:19 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <3C0AACCE.329CFB60@worldnet.att.net> <45601fc.0112031740.3e217c8a@posting.google.com> <3C0CF4E3.A53D20A7@sparc01.ftw.rsc.raytheon.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.lang.ada:17415 Date: 2001-12-04T17:18:19-05:00 List-Id: "Wes Groleau" wrote in message news:3C0CF4E3.A53D20A7@sparc01.ftw.rsc.raytheon.com... > > > Larry Kilgallen wrote: > > If they simply used common type declarations, a lot of errors would > > be detected. If Meters is a new type and is used throughout, and > > Feet is another new type, it becomes difficult to add them. > > But that's not enough to prevent 2 Meters * 2 Meters = 4 Meters > nor to allow 10 minutes * 5 KPH = 833 Meters You can always take away multipication: type Length_In_Meters_Type is new Float; --or whatever function "*" (L, R : Length_In_Meters_Type) return Length_In_Meters_Type is abstract;