From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org>
Subject: Re: Object.Operation and child package
Date: Wed, 25 Jun 2008 18:51:39 GMT
Date: 2008-06-25T18:51:39+00:00 [thread overview]
Message-ID: <%sw8k.171311$TT4.121951@attbi_s22> (raw)
In-Reply-To: <d98793ee-dd4c-4fb0-89f9-9068b5d33d0d@a70g2000hsh.googlegroups.com>
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
prev parent reply other threads:[~2008-06-25 18:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 17:41 Object.Operation and child package pascal.malaise
2008-06-25 18:40 ` Ludovic Brenta
2008-06-25 19:03 ` Adam Beneschan
2008-06-26 5:56 ` pascal.malaise
2008-06-25 18:51 ` Jeffrey R. Carter [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox