Dumb question,
Is there a basic linked List object for Lazarus?
Terry Haimann

Mailing lists / lazarus / 2018-06
7 messages · 5 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Dumb question,
Is there a basic linked List object for Lazarus?
Terry Haimann
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
Is there any documentation on using this object?
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
Is there any documentation on using this object?
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?
There seems to be nothing in there for TLinkedList or anything else in the glinkedlist unit...
-Jim
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.