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.66.90.193 with SMTP id by1mr188583pab.30.1406621568278; Tue, 29 Jul 2014 01:12:48 -0700 (PDT) X-Received: by 10.140.23.163 with SMTP id 32mr3807qgp.8.1406621568221; Tue, 29 Jul 2014 01:12:48 -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!h18no9724560igc.0!news-out.google.com!j6ni23213qas.0!nntp.google.com!v10no3132260qac.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 29 Jul 2014 01:12:48 -0700 (PDT) In-Reply-To: <87lhrc1u2x.fsf@adaheads.sparre-andersen.dk> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.115.10.140; posting-account=sDyr7QoAAAA7hiaifqt-gaKY2K7OZ8RQ NNTP-Posting-Host: 188.115.10.140 References: <87lhrc1u2x.fsf@adaheads.sparre-andersen.dk> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <179fd6a0-36bf-46c7-a16c-1e3d2112c7f7@googlegroups.com> Subject: Re: Problem with generic linked list package From: Laurent Injection-Date: Tue, 29 Jul 2014 08:12:48 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:21329 Date: 2014-07-29T01:12:48-07:00 List-Id: In this case none. Except that I need to adapt "Word" to "Element_Type". But if I have correctly understood the paragraph in the book following the = spec of the generic package, the idea is to define the display procedure in= the client program, in this case the test_linked_list_generic or the other= way around. Not writing this from computer so no access to my files.=20 So if Element_Type would be a record, I just have to provide in the client = program a display procedure for this record and I don't have to modify the = generic linked list package.=20 The author has given an little example of the used subtype, display proc. a= nd how to instantiate it but not the whole implementation of the package bo= dy or the test program on how to use the whole thing. So I am a bit lost as it doesn't work as I think it should but that's proba= bly because I am just guessing and have actually no idea what I am doing.= =20 So if someone wants to spoonfeed me with a few more information I would be = very happy. Not a fan of that approach but in this case I have no idea how to keep the = list package generic.=20 Thanks Laurent