comp.lang.ada
 help / color / mirror / Atom feed
* prefixed view
@ 2007-12-06 16:06 Maxim Reznik
  2007-12-06 18:00 ` Georg Bauhaus
  2007-12-06 23:36 ` Randy Brukardt
  0 siblings, 2 replies; 4+ messages in thread
From: Maxim Reznik @ 2007-12-06 16:06 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-06 23:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-06 16:06 prefixed view Maxim Reznik
2007-12-06 18:00 ` Georg Bauhaus
2007-12-06 18:32   ` Maxim Reznik
2007-12-06 23:36 ` Randy Brukardt

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