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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9ce5fb49dc74582f,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!e3g2000cwe.googlegroups.com!not-for-mail From: "markww" Newsgroups: comp.lang.ada Subject: generic question Date: 19 Nov 2006 10:03:59 -0800 Organization: http://groups.google.com Message-ID: <1163959439.299036.129940@e3g2000cwe.googlegroups.com> NNTP-Posting-Host: 68.174.181.181 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1163959444 10162 127.0.0.1 (19 Nov 2006 18:04:04 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 19 Nov 2006 18:04:04 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: e3g2000cwe.googlegroups.com; posting-host=68.174.181.181; posting-account=cNKOMg0AAADT2ug8oGSYYXo8bsDvrHzw Xref: g2news2.google.com comp.lang.ada:7564 Date: 2006-11-19T10:03:59-08:00 List-Id: Hi, I've been going through ada tutorials, and am looking at the generics support. I can't quite understand how to accomplish having a record which has a generic data member. For example, something like: type NODE_REC is record unknown_data_type : generic; -- not sure how to express this in ada Next_Node : NODE_REC_PTR; Prev_Node : NODE_REC_PTR; end record; I'd like to be able to store either an integer, a float, or some other user defined record type in there so that this node record becomes a container. Is this possible? Thanks, Mark