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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c78631398b51f91b,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!w34g2000hsg.googlegroups.com!not-for-mail From: Maxim Reznik Newsgroups: comp.lang.ada Subject: prefixed view Date: Thu, 6 Dec 2007 08:06:53 -0800 (PST) Organization: http://groups.google.com Message-ID: <8727544b-2f4f-4817-bb2e-20d4d104ae5d@w34g2000hsg.googlegroups.com> NNTP-Posting-Host: 92.113.41.48 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1196957214 20632 127.0.0.1 (6 Dec 2007 16:06:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 6 Dec 2007 16:06:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w34g2000hsg.googlegroups.com; posting-host=92.113.41.48; posting-account=K1cP1QoAAAD_GR6kW2Td0NqGqGBLRE8h User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:18744 Date: 2007-12-06T08:06:53-08:00 List-Id: Hi, all I'm trying to understand how prefixed calls work in Ada 2005. Here is an example: package pref_view is type Tg is tagged null record; procedure X (Item : Tg; Count : Integer); Object : Tg; procedure Y (Count : Integer) renames Object.X; generic with procedure Y (Count : Integer); package Gen is end; package Inst is new Gen (Object.X); end; ARM 4.1.3 (9.2/2): 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... Can I rename this view as new subprogram or use it as an actual parameter in instantiation? If NOT, why? Thanks -- Maxim Reznik