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,2bf2853c7c95c600,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed-0.progon.net!progon.net!news-zh.switch.ch!switch.ch!cernne03.cern.ch!cern.ch!news From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Dispatching operations Date: Tue, 08 Nov 2005 12:17:36 +0100 Organization: CERN - European Laboratory for Particle Physics Message-ID: NNTP-Posting-Host: abpc10883.cern.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sunnews.cern.ch 1131448655 2975 (None) 137.138.37.241 X-Complaints-To: news@sunnews.cern.ch User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Red Hat/1.7.12-1.1.3.2.SL3 X-Accept-Language: en-us, en Xref: g2news1.google.com comp.lang.ada:6280 Date: 2005-11-08T12:17:36+01:00 List-Id: Hi, Consider , 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/