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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e5327159069b64d5 X-Google-Attributes: gid103376,public From: "news.oxy.com" Subject: Re: Doubly linked list. Date: 1999/01/19 Message-ID: <781p6h$mlg$1@remarQ.com>#1/1 X-Deja-AN: 434366914 References: <7560vn$21e@romeo.logica.co.uk> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: newsabuse@remarQ.com X-Trace: 916744209 HXI3FRZSOA57FC7F8C usenet52.supernews.com Organization: Posted via RemarQ, http://www.remarQ.com - Discussions start here! Newsgroups: comp.lang.ada Date: 1999-01-19T00:00:00+00:00 List-Id: Matt Tyler wrote in message <7560vn$21e@romeo.logica.co.uk>... >I'm having trouble implementing a Doubly linked list in ada. > >My procedure to add a new singly linked record to the list is (body only) > >List:=new Box'(V,List); > >where V is an integer and List is an access type to box. > >I don't understand how to set another access type in the record to the >previous record on the list. Can anyone help?? > >P.S is there a comp.lang.ada faq ??????????? > >Cheers, > >Matt Tyler > > There is no need to reinvent the wheel ( of course if you do not need to have smth very specific). Have a look at the ADA95 implementation of the Booch components http://www.pogner.demon.co.uk/components/bc/ ). Everything is already at hand (including all types of linked lists). Just use it. Also this is very good example of ADA95 programming. Regards, Vladimir Olensky (Vladimir_Olensky@oxy.com) Telecommunication specialist, Occidental C.I.S. Service, Inc. ( www.oxy.com ) Moscow, Russia.