Replace this:
with this:
*set lists_char (lists_char + 1)
*if (lists_char > length(lists_listname))
*goto endofthisone
*set letter lists_listname#lists_char
I think.
Replace this:
with this:
*set lists_char (lists_char + 1)
*if (lists_char > length(lists_listname))
*goto endofthisone
*set letter lists_listname#lists_char
I think.
Oiy! or is it oye!? ioy? um YOU DID IT!
What happens if you remove the $? {} can be used for calculations, but the $ prefix is only used for printing a value.
I feel very dumb.
Here’s what happened. When I set lists_listname to mylist, it would take on the contents of mylist which is completely perfect. but I kept thinking of using it as a pointer and I thought it actually had the contents “mylist” instead of the list. at least I finally figured this out.
Yeah, that looks about right. But I really think that using a pointer (or I guess it’s technically a reference, but whatever) is unnecessary for almost everything you’d want to do in CS, and certainly for this. (Now, if you wanted to make a list of lists, then you might need pointers. )
Well, I’m not going to use it as a pointer now. I never was. I just thought I was.
Yes, a lists of list would need to be pointers or be ‘read’ a different way than other lists because otherwise you would never know when a list began or ended.