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,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dab1e23fc81e6b17 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-02 11:12:18 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: overriding "*", was Re: What's the ICFP Programming contest? Date: Wed, 2 Jul 2003 13:13:41 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: References: <9mEMa.19277$926.1303@sccrnsc03> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 X-Complaints-To: abuse@supernews.com Xref: archiver1.google.com comp.lang.ada:39986 Date: 2003-07-02T13:13:41-05:00 List-Id: tmoran@acm.org wrote in message <9mEMa.19277$926.1303@sccrnsc03>... >>That's a well-known feature of Ada 95 (and it is incompatible with Ada >>83). The problem is that you can't hide the mixed fixed point multiply >>(any fixed * any fixed -> universal fixed), so it is ambiguous anywhere >>other than in the children of your fixed point package. > Why did it work in Ada 83, and why was it changed? Ada 83 required that the mixed fixed point operators be used in a type conversion: A := My_Fixed(B*C); But this didn't allow literals, and was clumsy. So, it was changed to take the type from context: A := B*C; But that makes the operators always visible, so they get priority over use-visible ones. The incompatibility that that causes was thought to not be too important; but we know better now. Randy.