From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_05,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6000:695:b0:21a:3a1a:7b60 with SMTP id bo21-20020a056000069500b0021a3a1a7b60mr2243061wrb.441.1656136721615; Fri, 24 Jun 2022 22:58:41 -0700 (PDT) X-Received: by 2002:a0d:ebc4:0:b0:318:31c1:be92 with SMTP id u187-20020a0debc4000000b0031831c1be92mr2950575ywe.422.1656136721092; Fri, 24 Jun 2022 22:58:41 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.128.87.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 24 Jun 2022 22:58:40 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=87.143.123.42; posting-account=3zVVBwoAAAC7BSMfgNP7DSbqU9urpt40 NNTP-Posting-Host: 87.143.123.42 References: <1fabca7a-e3f0-41bb-9b51-9eabde85e800n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: overloading predefined operators From: "L. B." Injection-Date: Sat, 25 Jun 2022 05:58:41 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:64031 List-Id: Randy, > I generally prefer to use prefix notation in such cases rather than renaming > (which is easy to get subtly wrong). Remember that you can call any Ada > operator as if it is a normal function. So: > > if Standard."=" (A, B) then I tried this in https://github.com/Blunk-electronic/ada_training/blob/master/src/redefining/equality_1/equality.adb see line 99. The compiler says: equality.adb:99:20: incompatible arguments for operator