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.129.136.68 with SMTP id y65mr30981627ywf.53.1448383454402; Tue, 24 Nov 2015 08:44:14 -0800 (PST) X-Received: by 10.182.205.130 with SMTP id lg2mr46736obc.5.1448383454368; Tue, 24 Nov 2015 08:44:14 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!f78no2074131qge.1!news-out.google.com!f6ni12285igq.0!nntp.google.com!mv3no1538543igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 24 Nov 2015 08:44:14 -0800 (PST) In-Reply-To: <04eb6626-644b-4b16-a329-c35659a9fbe2@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.55.219.31; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 91.55.219.31 References: <04eb6626-644b-4b16-a329-c35659a9fbe2@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4d72fc79-0907-481a-9bf4-08aa99047084@googlegroups.com> Subject: Re: operation can be dispatching in only one type From: AdaMagica Injection-Date: Tue, 24 Nov 2015 16:44:14 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 2035 X-Received-Body-CRC: 2570727721 Xref: news.eternal-september.org comp.lang.ada:28522 Date: 2015-11-24T08:44:14-08:00 List-Id: Am Dienstag, 24. November 2015 10:08:07 UTC+1 schrieb Serge Robyns: > > In Ada, neither the parameter name (Self) nor the position of the parameter in > > the parameter list determine the type for which an operation of a tagged type > > dispatches. Instead, it dispatches on the parameter of a tagged type for which > > it is a primitive operation. [A primitive operation is declared in the same > > declarative part as the type (usually a pkg spec).] > > I didn't know about the position, I honestly believed it had to be the 1st. I don't know where I read that. Anyway I'm reading now the A-LRM 2012. I'm using "Self" as a naming convention. If you want to use prefix notation Obj.Op, then Obj has to be the first parameter.