[Implemented] List in Structure?

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Leonhard
User
User
Posts: 55
Joined: Fri Jun 16, 2006 7:43 am

[Implemented] List in Structure?

Post 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.
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post 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.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Leonhard
User
User
Posts: 55
Joined: Fri Jun 16, 2006 7:43 am

Post by Leonhard »

I would not a other way.

I have a other way for this, but it is not PureBasic-Supportet.
Chrono Syndrome
Enthusiast
Enthusiast
Posts: 169
Joined: Thu Oct 05, 2006 6:44 am
Contact:

Post by Chrono Syndrome »

Good idea. Very good.
Don't try to catch ze Night !
Remember: 'z' is better zen 'th' =) !
Sorry for bad english.
Post Reply