comp.lang.ada
 help / color / mirror / Atom feed
* generics and records
@ 2005-02-27 19:34 spambox
  2005-02-27 20:16 ` Dmitry A. Kazakov
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: spambox @ 2005-02-27 19:34 UTC (permalink / raw)


Hello,
in the process of learning Ada, I came to the problem of generics and
records. I want to instantiate a package with a record type:

generic
 type x is private;
package ...
private
 type xx is new x;
end ...

When I want to use it:

type myrecord is
 ...
package somename is new seeabove(myrecord);

I don't know if this is the correct way. The problem is, how do I make
a component of myrecord available to the package?

Thanks,

andrej




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

end of thread, other threads:[~2005-03-01 20:17 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-27 19:34 generics and records spambox
2005-02-27 20:16 ` Dmitry A. Kazakov
2005-02-27 21:31   ` spambox
2005-02-28  8:47     ` Dmitry A. Kazakov
2005-02-28  9:00       ` spambox
2005-02-28 10:07         ` Dmitry A. Kazakov
2005-02-28  6:02 ` Jeffrey Carter
2005-03-01 11:21 ` Martin Krischik
2005-03-01 19:47   ` Georg Bauhaus
2005-03-01 20:17     ` Dmitry A. Kazakov

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