[Coco] Basic09 Linked Lists
manney at gmail.com
Tue May 21 21:54:27 EDT 2019
I didn't think you could use `data` for dynamic values? Say that you have
a list of values that you are getting from a file, like a CSV or something,
that could change the next time you run your program.
On Tue, May 21, 2019 at 6:23 PM Wayne Campbell <asa.rand at gmail.com> wrote:
> Why not use the built-in DATA elements. That's a linked list and all you
> have to supply is the data. I need to look in the manual to remember the
> exact syntax.
> On Tue, May 21, 2019, 4:13 PM Aaron <manney at gmail.com> wrote:
> > Hi all,
> > I found a snippet of code for a linked list, which is essentially an
> > of `type`s:
> > TYPE link_pointers = fwd,back: INTEGER
> > TYPE element = data: STRING; ptr: link_pointers
> > DIM list(100): element
> > Is this the best way to make a linked list in Basic09? Or is there a
> > better implementation out there? Ideally, I'd love to use it without
> > having to pre-define the length of the array. But, unless things have
> > changed in the last 20 years, I'm aware of the limitations of Basic09.
> > Thanks.
> > --
> > Coco mailing list
> > Coco at maltedmedia.com
> > https://pairlist5.pair.net/mailman/listinfo/coco
> Coco mailing list
> Coco at maltedmedia.com
More information about the Coco