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 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: Re: generic question Date: 19 Nov 2006 12:16:00 -0800 Organization: http://groups.google.com Message-ID: <1163967360.281816.203420@e3g2000cwe.googlegroups.com> References: <1163959439.299036.129940@e3g2000cwe.googlegroups.com> <87mz6nnt4v.fsf@ludovic-brenta.org> <20061119202320.19149a2f@cube.tz.axivion.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 1163967365 726 127.0.0.1 (19 Nov 2006 20:16:05 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 19 Nov 2006 20:16:05 +0000 (UTC) In-Reply-To: <20061119202320.19149a2f@cube.tz.axivion.com> 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:7567 Date: 2006-11-19T12:16:00-08:00 List-Id: Thanks guys I'll give it a try now, Mark On Nov 19, 2:23 pm, Stefan Bellon wrote: > Ludovic Brenta wrote: > > generic > > type T is private; > > package P is > > type Node; > > type Node_Ptr is access Node; > > type Node is record > > Data : T; > > Prev, Next : Node_Ptr; > > end record; > > end P;Or, since you are referring to the Ada 2005 container classes anyway, > using Ada 2005 and anonymous access: > > generic > type T is private; > package P is > type Node is record > Data : T; > Prev : access Node; > Next : access Node; > end record; > end P; > > -- > Stefan Bellon