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 Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!fdn.fr!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <4560D5BE.5060508@obry.net> Date: Sun, 19 Nov 2006 23:07:58 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: Stefan Bellon CC: Ludovic Brenta Subject: Re: generic question References: <1163959439.299036.129940@e3g2000cwe.googlegroups.com> <87mz6nnt4v.fsf@ludovic-brenta.org> <20061119202320.19149a2f@cube.tz.axivion.com> In-Reply-To: <20061119202320.19149a2f@cube.tz.axivion.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 19 Nov 2006 23:08:00 CET NNTP-Posting-Host: 82.120.144.196 X-Trace: 1163974080 news.orange.fr 25937 82.120.144.196:1382 X-Complaints-To: abuse@orange.fr Xref: g2news2.google.com comp.lang.ada:7572 Date: 2006-11-19T23:08:00+01:00 List-Id: Stefan Bellon a �crit : > 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; You probably don't want "access Node" here as you won't be able to deallocate such pointer. There is no way to instantiate Unchecked_Conversion with an anonymous access type. This is something I found quite irritating in Ada 2005. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595