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.91.97 with SMTP id cd1mr10542907obb.33.1407439524944; Thu, 07 Aug 2014 12:25:24 -0700 (PDT) X-Received: by 10.182.58.20 with SMTP id m20mr38390obq.20.1407439524750; Thu, 07 Aug 2014 12:25:24 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!h18no9962601igc.0!news-out.google.com!eg1ni559igc.0!nntp.google.com!h18no15773257igc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 7 Aug 2014 12:25:24 -0700 (PDT) In-Reply-To: <4f431041-5292-434d-988e-46d69f4800f8@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=KSa2aQoAAACOxnC0usBJYX8NE3x3a1Xq NNTP-Posting-Host: 66.126.103.122 References: <85a97spo1c.fsf@stephe-leake.org> <92dd7d22-a7da-44d7-9c40-b3aa62881683@googlegroups.com> <4f431041-5292-434d-988e-46d69f4800f8@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <472a5732-3dc9-4c08-8bda-00720375a2a9@googlegroups.com> Subject: Re: Problem with generic linked list package From: Adam Beneschan Injection-Date: Thu, 07 Aug 2014 19:25:24 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:21518 Date: 2014-08-07T12:25:24-07:00 List-Id: I responded a bit too quickly, so here's a bit more of an explanation: On Thursday, August 7, 2014 12:21:52 PM UTC-7, Adam Beneschan wrote: > On Thursday, August 7, 2014 12:07:15 PM UTC-7, Laurent wrote: > > function "<" (Left,Right: Element_Type) return Boolean is > > begin > > return Left< Right; > > end "<"; > The expression "Left < Right" just causes the "<" function to call itself recursively. Changing it to function "<" (Left, Right : Element_Type) return Boolean is begin if Left < Right then return True; else return False; end if; end "<"; doesn't help at all. The function still calls itself recursively. When you wrote "Left < Right", what "<" were you hoping it would use? -- Adam