Page 1 of 1

[Implemented] List in Structure?

Posted: Wed Apr 25, 2007 3:29 pm
by Leonhard

Code: Select all

Structure str
  list.l[]
EndStructure

Define s.str

NewElement(s\list[])
s\list[] = 3543
I found, this were a good feakture.

Posted: Wed Apr 25, 2007 4:56 pm
by Hroudtwolf
Take a look in the PureBasic-Lounge in "Mein Werk/Mein Werk (Apps & Tools)/ RLL. Dynamische LinkedLists".
There is a Userlib for dynamic linkedlists.
The rll_linkedlists are usable by handles. So, you can use LLs into structures.

But you're right.
That would be a nice feature for pb.
But I believe, it isn't doable in such form, you've described.
An easier way would be, to solve it with handles like in my rll userlib.

Posted: Wed Apr 25, 2007 5:26 pm
by Psychophanta

Posted: Thu Apr 26, 2007 6:55 am
by Leonhard
I would not a other way.

I have a other way for this, but it is not PureBasic-Supportet.

Posted: Thu May 17, 2007 1:52 pm
by Chrono Syndrome
Good idea. Very good.