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,dab1e23fc81e6b17 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-30 22:58:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: overriding "*", was Re: What's the ICFP Programming contest? References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.13.56 X-Complaints-To: abuse@attbi.com X-Trace: rwcrnsc51.ops.asp.att.net 1057039122 12.234.13.56 (Tue, 01 Jul 2003 05:58:42 GMT) NNTP-Posting-Date: Tue, 01 Jul 2003 05:58:42 GMT Organization: AT&T Broadband Date: Tue, 01 Jul 2003 05:58:42 GMT Xref: archiver1.google.com comp.lang.ada:39943 Date: 2003-07-01T05:58:42+00:00 List-Id: For the contest I needed to override normal fixed point multiply and divide, so I declared type Root_Numbers is delta ... type Numbers is new Root_Numbers; function "*"(Left, Right : Numbers) return Numbers; A, B, C : Numbers; and tried to use it in formulas like C := Numbers(A * B); But a compiler said the "*" was ambiguous between my function and Standard. It seems to me I overrode, and thus hid, Standard."*", no? p.s. I did manage to write a program that successfully drove the first 5 out of 9 race tracks. It gets really lost though in the maze-like ones. The "programming" contest really becomes an "algorithm" contest there.