From: Marek Janukowicz <marek@janukowicz.net>
Subject: Generic operation and prefixed notation
Date: Mon, 14 Jun 2010 19:47:09 +0200
Date: 2010-06-14T19:47:09+02:00 [thread overview]
Message-ID: <hv5puu$2dp1$1@adenine.netfront.net> (raw)
Hello
I'm still working on a problem I asked about last week (thanks for all the
answers). Another question that arose recently: is there any way of calling
an instantiation of generic operation with prefixed notation?
Given a simplified example:
type Model is tagged record
null
end record;
generic
Attr_Name : String;
procedure Get_Attribute( M : Model );
procedure Get_Name is new Get_Attribute( "Name" );
Now I can call it with:
Get_Name( M );
but I'd rather use
M.Get_Name;
which complains about Get_Name not being present.
Is there any other way to achieve it?
--
Marek Janukowicz
--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
next reply other threads:[~2010-06-14 17:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-14 17:47 Marek Janukowicz [this message]
2010-06-14 18:09 ` Generic operation and prefixed notation Dmitry A. Kazakov
2010-06-14 18:11 ` Yannick Duchêne (Hibou57)
2010-06-15 1:14 ` Adam Beneschan
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox