comp.lang.ada
 help / color / mirror / Atom feed
From: Maxim Reznik <reznikmm@gmail.com>
Subject: prefixed view
Date: Thu, 6 Dec 2007 08:06:53 -0800 (PST)
Date: 2007-12-06T08:06:53-08:00	[thread overview]
Message-ID: <8727544b-2f4f-4817-bb2e-20d4d104ae5d@w34g2000hsg.googlegroups.com> (raw)

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




             reply	other threads:[~2007-12-06 16:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-06 16:06 Maxim Reznik [this message]
2007-12-06 18:00 ` prefixed view Georg Bauhaus
2007-12-06 18:32   ` Maxim Reznik
2007-12-06 23:36 ` Randy Brukardt
replies disabled

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