comp.lang.ada
 help / color / mirror / Atom feed
From: Laurent <daemon2@internet.lu>
Subject: Re: Problem with generic linked list package
Date: Tue, 29 Jul 2014 01:12:48 -0700 (PDT)
Date: 2014-07-29T01:12:48-07:00	[thread overview]
Message-ID: <179fd6a0-36bf-46c7-a16c-1e3d2112c7f7@googlegroups.com> (raw)
In-Reply-To: <87lhrc1u2x.fsf@adaheads.sparre-andersen.dk>

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. 

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. 

The author has given an little example of the used subtype, display proc. and how to instantiate it but not the whole implementation of the package body 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 probably because I am just guessing and have actually no idea what I am doing. 

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. 

Thanks

Laurent

  reply	other threads:[~2014-07-29  8:12 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-28 13:26 Problem with generic linked list package Laurent
2014-07-29  7:51 ` Jacob Sparre Andersen
2014-07-29  8:12   ` Laurent [this message]
2014-07-29  8:27 ` Stephen Leake
2014-07-29 15:38   ` Laurent
2014-08-07 19:07     ` Laurent
2014-08-07 19:21       ` Adam Beneschan
2014-08-07 19:25         ` Adam Beneschan
2014-08-07 22:20           ` Laurent
2014-08-07 23:35             ` Adam Beneschan
2014-08-08  4:42               ` Laurent
2014-08-09 14:32                 ` Laurent
2014-08-09 14:58                   ` AdaMagica
2014-08-09 15:22                   ` Jeffrey Carter
2014-08-09 18:51                   ` Shark8
2014-08-09 21:53                     ` Laurent
2014-08-09 22:25                       ` Jeffrey Carter
2014-08-10  8:22                       ` Simon Wright
2014-08-10 10:45                         ` Simon Wright
2014-08-10 20:20                           ` Laurent
2014-08-10 21:57                             ` Simon Wright
2014-08-10 23:42                               ` Jeffrey Carter
2014-08-11  4:51                                 ` Laurent
2014-08-11  5:13                                   ` Jeffrey Carter
2014-08-11  7:56                                     ` Laurent
2014-08-07 20:37       ` Shark8
2014-08-07 22:30         ` Laurent
2014-08-07 23:22           ` Shark8
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox