comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <no.spam@no.spam.com>
Subject: Dispatching operations
Date: Tue, 08 Nov 2005 12:17:36 +0100
Date: 2005-11-08T12:17:36+01:00	[thread overview]
Message-ID: <dkq1gf$2sv$1@sunnews.cern.ch> (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/



             reply	other threads:[~2005-11-08 11:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-08 11:17 Maciej Sobczak [this message]
2005-11-08 12:06 ` Dispatching operations 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
replies disabled

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