Linked lists inside linked lists

Share your advanced PureBasic knowledge/code with the community.
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Linked lists inside linked lists

Post by tinman »

These functions are designed to be as close to the PureBasic linked list commands as possible, but give the flexibility of using linked lists anywhere you want. Save this first code fragment as "double_linked_lists.pb" (or anything you want as long as you change the code in the demo snippet later :).

Edit: Code removed, please use the version in the archive.

The original archive with another demo and a readme can be found on my website (http://www.david-mcminn.co.uk). Please let me know if you find any problems or if you make any updates that I can merge back in.
Last edited by tinman on Sat Feb 09, 2008 9:26 pm, edited 1 time in total.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
fweil
Enthusiast
Enthusiast
Posts: 725
Joined: Thu Apr 22, 2004 5:56 pm
Location: France
Contact:

Post by fweil »

tinman,

Woow ... it works fine, and it is nice coded and commented.

Excellent.
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

fweil wrote:and commented
I wouldn't really say that :) Most are empty or blank.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
fweil
Enthusiast
Enthusiast
Posts: 725
Joined: Thu Apr 22, 2004 5:56 pm
Location: France
Contact:

Post by fweil »

I insist ! Few comments but good variable names, both make well commented ...
My avatar is a small copy of the 4x1.8m image I created and exposed at 'Le salon international du meuble à Paris' january 2004 in Matt Sindall's 'Shades' designers exhibition. The original laminated print was designed using a 150 dpi printout.
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: Linked lists inside linked lists

Post by NoahPhense »

sweet!

- np
Fred
Administrator
Administrator
Posts: 18252
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Nice job !
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

9th February 2008: Updated for PB4.x (thanks Dare), Unicode and automatic string freeing.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
User avatar
Demivec
Addict
Addict
Posts: 4270
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Post by Demivec »

tinman wrote:9th February 2008: Updated for PB4.x (thanks Dare), Unicode and automatic string freeing.
Thanks for the update, in the readme on your site the History list states:
; History:
; 6th February 2006 Updates for PB 4.x by "Dare"
Why did you wait so long to tell us? :wink:
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

Demivec wrote:Why did you wait so long to tell us? :wink:
Doh!
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
User avatar
STARGÅTE
Addict
Addict
Posts: 2235
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Post by STARGÅTE »

nice,
i have write a LL in LL too, but it's on german:
LinkedList in Structure
i don't need Pointerreturns
Post Reply