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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.18.138 with SMTP id 10mr13674140ios.70.1523047079195; Fri, 06 Apr 2018 13:37:59 -0700 (PDT) X-Received: by 2002:a9d:bc8:: with SMTP id 66-v6mr1531144oth.10.1523047077558; Fri, 06 Apr 2018 13:37:57 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.unit0.net!peer03.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!u184-v6no34592ita.0!news-out.google.com!15-v6ni15itg.0!nntp.google.com!u184-v6no34589ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 6 Apr 2018 13:37:57 -0700 (PDT) In-Reply-To: <3c392f24-5b12-4290-9ec6-2dc986bb6530@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2003:c7:83e8:db25:5030:2c04:438e:85c; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 2003:c7:83e8:db25:5030:2c04:438e:85c References: <3c392f24-5b12-4290-9ec6-2dc986bb6530@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Standard."-" provided to "with function "-" (VAL1 : in VALUE_TYPE) return VALUE_TYPE is <>;" refused: From: AdaMagica Injection-Date: Fri, 06 Apr 2018 20:37:59 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2176 X-Received-Body-CRC: 3188924762 Xref: reader02.eternal-september.org comp.lang.ada:51362 Date: 2018-04-06T13:37:57-07:00 List-Id: Am Freitag, 6. April 2018 19:20:23 UTC+2 schrieb Mehdi Saada: > The parameter is > with function "-" (VAL1 : in VALUE_TYPE) return VALUE_TYPE is <>; > from the (simplified) package > generic > type VALUE_TYPE is private; > with function "-" (VAL1 : in VALUE_TYPE) return VALUE_TYPE is <>; > package NUMERIC_SIGNATURE is end Numeric_Signature; > > The instantiation is: > package P_Num is new NUMERIC_SIGNATURE (VALUE_TYPE => Float); > Package_needing_a_numeric_signature is new SPREADSHEETS.Formula_Cells (P_NUM); > > why do I have: > instantiation error > operator "-" not defined for type "VALUE_TYPE" defined at ... > gprbuild: *** compilation phase failed > And putting "-" => Standard."-" "association not allowed for overloaded formal" > > ... Isn't able to choose the "-" with the right parameters number ?! The operators for Float in Standard are intrinsic. Guess this is the reason why.