[Lazarus] Lazarus and Linked Lists

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] Lazarus and Linked Lists

Free Pascal - Lazarus mailing list
Dumb question,

Is there a basic linked List object for Lazarus?

Terry Haimann
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Lazarus and Linked Lists

Free Pascal - Lazarus mailing list
On Wed, 27 Jun 2018 05:57:12 -0500
"Terry A. Haimann via Lazarus" <[hidden email]> wrote:

> 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
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Lazarus and Linked Lists

Free Pascal - Lazarus mailing list
Is there any documentation on using this object?

On Wed, 2018-06-27 at 13:06 +0200, Mattias Gaertner via Lazarus wrote:

> On Wed, 27 Jun 2018 05:57:12 -0500
> "Terry A. Haimann via Lazarus" <[hidden email]> wrote:
>
> >
> > 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
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Lazarus and Linked Lists

Free Pascal - Lazarus mailing list
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


On 27/06/2018 07:24, Terry A. Haimann via Lazarus wrote:

> Is there any documentation on using this object?
>
> On Wed, 2018-06-27 at 13:06 +0200, Mattias Gaertner via Lazarus wrote:
>> On Wed, 27 Jun 2018 05:57:12 -0500
>> "Terry A. Haimann via Lazarus" <[hidden email]> wrote:
>>
>>> 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

--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Lazarus and Linked Lists

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
> 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/
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Lazarus and Linked Lists

Free Pascal - Lazarus mailing list


On 06/27/18 18:59, leledumbo via Lazarus wrote:

>> 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

--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Lazarus and Linked Lists

Free Pascal - Lazarus mailing list
> 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/
--
_______________________________________________
Lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus