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,9ce5fb49dc74582f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.uni-stuttgart.de!not-for-mail From: Stefan Bellon Newsgroups: comp.lang.ada Subject: Re: generic question Date: Sun, 19 Nov 2006 20:23:20 +0100 Organization: Comp.Center (RUS), U of Stuttgart, FRG Message-ID: <20061119202320.19149a2f@cube.tz.axivion.com> References: <1163959439.299036.129940@e3g2000cwe.googlegroups.com> <87mz6nnt4v.fsf@ludovic-brenta.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: infosun2.rus.uni-stuttgart.de 1163964195 26906 129.69.226.25 (19 Nov 2006 19:23:15 GMT) X-Complaints-To: news@news.uni-stuttgart.de NNTP-Posting-Date: Sun, 19 Nov 2006 19:23:15 +0000 (UTC) To: Ludovic Brenta In-Reply-To: <87mz6nnt4v.fsf@ludovic-brenta.org> X-Newsreader: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; i486-pc-linux-gnu) X-URL: http://www.axillion.de/ Xref: g2news2.google.com comp.lang.ada:7566 Date: 2006-11-19T20:23:20+01:00 List-Id: 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