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-Thread: 103376,14fb9d67ad36043 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Object.Operation and child package References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <%sw8k.171311$TT4.121951@attbi_s22> NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1214419899 12.201.97.213 (Wed, 25 Jun 2008 18:51:39 GMT) NNTP-Posting-Date: Wed, 25 Jun 2008 18:51:39 GMT Organization: AT&T ASP.att.net Date: Wed, 25 Jun 2008 18:51:39 GMT Xref: g2news1.google.com comp.lang.ada:882 Date: 2008-06-25T18:51:39+00:00 List-Id: pascal.malaise@gmail.com wrote: > > Is it normal to reject compilation of Object.Operation notation when > operation is in a child package: Yes. ARM 4.1.3: Quote : begin 9.1/2 * A view of a subprogram whose first formal parameter is of a tagged type or is an access parameter whose designated type is tagged: 9.2/2 The prefix (after any implicit dereference) shall resolve to denote an object or value of a specific tagged type T or class-wide type T'Class. The selector_name shall resolve to denote a view of a subprogram declared immediately within the declarative region in which an ancestor of the type T is declared. The first formal parameter of the subprogram shall be of type T, or a class-wide type that covers T, or an access parameter designating one of these types. The designator of the subprogram shall not be the same as that of a component of the tagged type visible at the point of the selected_component. The selected_component denotes a view of this subprogram that omits the first formal parameter. This view is called a prefixed view of the subprogram, and the prefix of the selected_component (after any implicit dereference) is called the prefix of the prefixed view. end Quote; (In interpreting this, it's important to remember that a tagged type T in an ancestor of itself: ARM 3.4.1.) The operation declared in your child package is not declared immediately within the declarative region in which Typ is declared, so you cannot use Object.Operation notation for it. -- Jeff Carter "Sons of a silly person." Monty Python & the Holy Grail 02