comp.lang.ada
 help / color / mirror / Atom feed
* Dispatching operations
@ 2005-11-08 11:17 Maciej Sobczak
  2005-11-08 12:06 ` christoph.grein
  2005-11-08 16:15 ` Jeffrey R. Carter
  0 siblings, 2 replies; 5+ messages in thread
From: Maciej Sobczak @ 2005-11-08 11:17 UTC (permalink / raw)


Hi,

Consider <http://www.adaic.org/standards/95aarm/html/AA-3-9-2.html>, 
example from 20.c to 20.f.

It is said that the following call:

P2.Op_B(Arg => X);

is non-dispatching.

My confusion is that Op_B is private in P2. X is declared in P2 as well. 
In the above call, I'd expect P2.Op_B to be called (which is actually 
the case), but since everything is known statically, then I'd expect as 
well to get compile-time error due to the fact that P2.Op_B is private.

In other words: how can I get compile error when calling private P2.Op_B?
If it's not possible, what's the point in making it private?


-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-09 22:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-08 11:17 Dispatching operations Maciej Sobczak
2005-11-08 12:06 ` christoph.grein
2005-11-08 16:15 ` Jeffrey R. Carter
2005-11-09  8:38   ` Maciej Sobczak
2005-11-09 22:28     ` Jeffrey R. Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox