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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.68.50 with SMTP id s18mr2926684obt.47.1421963169451; Thu, 22 Jan 2015 13:46:09 -0800 (PST) X-Received: by 10.140.105.102 with SMTP id b93mr38627qgf.29.1421963169426; Thu, 22 Jan 2015 13:46:09 -0800 (PST) Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!hl2no1244627igb.0!news-out.google.com!q4ni0qan.0!nntp.google.com!bm13no2362800qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 22 Jan 2015 13:46:09 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.99.113.5; posting-account=sDyr7QoAAAA7hiaifqt-gaKY2K7OZ8RQ NNTP-Posting-Host: 83.99.113.5 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <713608f7-d46e-4b73-a34e-552d1b978d2c@googlegroups.com> Subject: Strange error From: Laurent Injection-Date: Thu, 22 Jan 2015 21:46:09 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.giganews.com comp.lang.ada:192009 Date: 2015-01-22T13:46:09-08:00 List-Id: Hi I have a strange error with my double linked list, more precisely my reverse_print procedure: ... Content of L2 (Target) after copying L1 (Source) Huh. . .Top. . .taa. . .Hat. . .Boy. . .Cat. . .Tut. . .Gna. . . Content of L2 (Target) after copying L1 (Source), reverse print Gna. . .Tut. . .Cat. . .Boy. . .Hat. . .taa. . .Top. . .Huh. . . Content of L2 (Target) after deleting it List is empty Content of L3 List is empty inserting 5000 in L3 Content of L3, normal display 5000. . . Content of L3, reverse display 5000. . . inserting 123 in L3 Content of L3, normal display 123. . .5000. . . Content of L3, reverse display 5000. . .123. . . inserting 4567 in L3 Content of L3, normal display 123. . .4567. . .5000. . . Content of L3, reverse display 5000. . .123. . . [2015-01-22 22:25:49] process terminated successfully, elapsed time: 00.21s The version to test the reverse print on L2 which is a list of 3 char silly words works as expected. The version to test it with integers doesn't. Stops after 2 elements even if there are more in the list. The files are on git. https://github.com/Chutulu/Chapter-15.git No idea what is going wrong. The worst is that before it worked. I had put both versions inside one procedure with an additional parameter to decide if normal print or reverse. wasn't happy with the choice thing and decided to make 2 /= procedures. Thanks Laurent