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 09:32:48 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!nycmny1-snh1.gtei.net!crtntx1-snh1.gtei.net!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Another Idea for Ada 20XX Date: 10 Dec 2001 11:32:36 -0600 Organization: LJK Software 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> <3C14EC43.67FD5082@sparc01.ftw.rsc.raytheon.com> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1008005558 20299 192.135.80.34 (10 Dec 2001 17:32:38 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Mon, 10 Dec 2001 17:32:38 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:17696 Date: 2001-12-10T11:32:36-06:00 List-Id: In article <3C14EC43.67FD5082@sparc01.ftw.rsc.raytheon.com>, Wes Groleau writes: > >> "Larry Kilgallen" wrote .... >> >> > > 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. > > No, I'm saying it doesn't. So making derived types for > Minutes, KPH, and Meters is not sufficient to make the > example work. You have to also define the operator. My point was that "accidental" multiplication will not be allowed if one uses individual types (not subtypes).