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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,437103ff8a92c0df,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail From: spambox@volja.net Newsgroups: comp.lang.ada Subject: generics and records Date: 27 Feb 2005 11:34:00 -0800 Organization: http://groups.google.com Message-ID: <1109532840.857126.234720@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: 82.192.62.228 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1109532845 29472 127.0.0.1 (27 Feb 2005 19:34:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 27 Feb 2005 19:34:05 +0000 (UTC) User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=82.192.62.228; posting-account=sjoIww0AAACsQsohcnPenkRLTMgYA84g Xref: g2news1.google.com comp.lang.ada:8517 Date: 2005-02-27T11:34:00-08:00 List-Id: 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