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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,25ecb78615e0f778 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-22 10:28:24 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!newshub.northeast.verio.net!verio!newsfeed.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: protected objects and external call Date: 22 Jan 2004 13:28:23 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <5f59677c.0401220851.3c2922b0@posting.google.com> NNTP-Posting-Host: pip1-5.std.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1074796103 30512 192.74.137.185 (22 Jan 2004 18:28:23 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Thu, 22 Jan 2004 18:28:23 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:4667 Date: 2004-01-22T13:28:23-05:00 List-Id: evangeli@cnam.fr (Evangelista Sami) writes: > in RM-9.5.1 we see there is a difference between external and internal > protected calls. Let's consider the following code > ---------------------------------- > protected type Prot is > procedure P; > end Prot; > My_Prots : array (1..10) of Prot; > > protected body Prot is > > procedure P is > begin > ..... > My_Prots(5).P; > .... > end; > > end Prot; > ---------------------------------- > > Is the call "My_Prots(5).P" always considered as an external call or > is it an internal call if the object on which is executed the > procedure is My_Prots(5) ? Always external. The rule is in RM-9.5(3-4), and it's based on the form of name used, not on some sort of run-time decision. - Bob