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-10 08:47:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Another Idea for Ada 20XX Date: 10 Dec 2001 11:22:16 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <3C0AACCE.329CFB60@worldnet.att.net> <45601fc.0112031740.3e217c8a@posting.google.com> <3C0CF4E3.A53D20A7@sparc01.ftw.rsc.raytheon.com> <9v0qvv$c44n1$1@ID-25716.news.dfncis.de> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1008001499 895 128.183.220.71 (10 Dec 2001 16:24:59 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 10 Dec 2001 16:24:59 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:17682 Date: 2001-12-10T16:24:59+00:00 List-Id: "Nick Roberts" writes: > "Larry Kilgallen" wrote in message > news:C1UHcLPG$dZX@eisner.encompasserve.org... > > > > nor to allow 10 minutes * 5 KPH = 833 Meters > > > > Are you saying that multiplying two different types (not subtypes > > of the same type) works in Ada95 ? My experience is mostly Ada83. > > If they are both fixed point types, I think the answer is 'yes', provided > it's in the context of a specific fixed point type (not universal fixed). > E.g.: > > D: Distance := Duration(10*60.0) * KPH(5.0); Umm, surely there must somewhere be defined a "conversion multiplier", and it must be visible: function "*" (left : in duration; right : in KPH) return Distance; otherwise the above statement is not legal, in Ada 83 or 95. Defining _all_ of these required conversion multipliers is the killer for this concept. -- -- Stephe