Discussion:
[Lazarus] Lazarus and Linked Lists
Terry A. Haimann via Lazarus
2018-06-27 10:57:12 UTC
Permalink
Dumb question,

Is there a basic linked List object for Lazarus?

Terry Haimann
--
Mattias Gaertner via Lazarus
2018-06-27 11:06:27 UTC
Permalink
On Wed, 27 Jun 2018 05:57:12 -0500
Post by Terry A. Haimann via Lazarus
Dumb question,
Is there a basic linked List object for Lazarus?
Have you seen the answer on the fpc list?

http://lists.freepascal.org/pipermail/fpc-pascal/2018-June/054287.html

Mattias
--
Terry A. Haimann via Lazarus
2018-06-27 12:24:14 UTC
Permalink
Is there any documentation on using this object?
Post by Mattias Gaertner via Lazarus
On Wed, 27 Jun 2018 05:57:12 -0500
Post by Terry A. Haimann via Lazarus
Dumb question,
Is there a basic linked List object for Lazarus?
Have you seen the answer on the fpc list?
http://lists.freepascal.org/pipermail/fpc-pascal/2018-June/054287.htm
l
Mattias
--
Denis Kozlov via Lazarus
2018-06-27 17:32:09 UTC
Permalink
FPC has a couple of internal linked list implementations but they are
not exposed publicly, see:
* TLinkedList class in "compiler\cclasses.pas".
* TLinkedList class in "rtl\objpas\classes\sllist.inc".

Also, it is fairly easy to implement yourself following the pseudo code
from wikipedia:
https://en.wikipedia.org/wiki/Linked_list
https://en.wikipedia.org/wiki/Doubly_linked_list
https://en.wikipedia.org/wiki/Category:Linked_lists

Denis
Post by Terry A. Haimann via Lazarus
Is there any documentation on using this object?
Post by Mattias Gaertner via Lazarus
On Wed, 27 Jun 2018 05:57:12 -0500
Post by Terry A. Haimann via Lazarus
Dumb question,
Is there a basic linked List object for Lazarus?
Have you seen the answer on the fpc list?
http://lists.freepascal.org/pipermail/fpc-pascal/2018-June/054287.htm
l
Mattias
--
leledumbo via Lazarus
2018-06-28 01:59:44 UTC
Permalink
Post by Terry A. Haimann via Lazarus
Is there any documentation on using this object?
Doc:
https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/doc/main.pdf
Examples:
https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/tests/

Don' you know you can browse that site up n down?



--
Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/
--
Jim Lee via Lazarus
2018-06-28 05:11:50 UTC
Permalink
Post by leledumbo via Lazarus
Post by Terry A. Haimann via Lazarus
Is there any documentation on using this object?
https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/doc/main.pdf
https://svn.freepascal.org/svn/fpc/tags/release_3_0_4/packages/fcl-stl/tests/
Don' you know you can browse that site up n down?
There seems to be nothing in there for TLinkedList or anything else in
the glinkedlist unit...

-Jim

--
leledumbo via Lazarus
2018-06-28 09:50:06 UTC
Permalink
There seems to be nothing in there for TLinkedList or anything else in the
glinkedlist unit...

Browse the tests instead, TLinkedList wasn't shipped with original fcl-stl,
it was added later without documentation.



--
Sent from: http://free-pascal-lazarus.989080.n3.nabble.com/
--

Loading...