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,FREEMAIL_FROM,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,de06245437f9462,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-18 16:23:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.tampabay.rr.com!cyclone.austin.rr.com!typhoon.austin.rr.com.POSTED!53ab2750!not-for-mail From: "kaak" Newsgroups: comp.lang.ada Subject: Linked List in ada X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Tue, 18 Jun 2002 23:21:17 GMT NNTP-Posting-Host: 24.162.113.31 X-Complaints-To: abuse@rr.com X-Trace: typhoon.austin.rr.com 1024442477 24.162.113.31 (Tue, 18 Jun 2002 18:21:17 CDT) NNTP-Posting-Date: Tue, 18 Jun 2002 18:21:17 CDT Organization: Road Runner - Texas Xref: archiver1.google.com comp.lang.ada:26320 Date: 2002-06-18T23:21:17+00:00 List-Id: I'm curious about linked lists and pointers in ada. I'm not sure exactly how they work. This is the code i have so far: procedure insertRear(header:in out ptr; x: integer) is p: ptr; q: ptr; BEGIN p = new node; p.key = x; q = header; loop: exit when q.next = null; if q.next then q = q.next; else exit; end if; end loop; q.next = p I don't think the syntax is right with the pointers. and ideas?