smugindividual
Programmer
I have found this to be a problem when using string range to build lists:
The string range function will accept a range outside the bound of the string.
this command:
[string range "happy" 1 4]
would produce "appy" as expected. But these commands:
[string range "happy" -5 -1]
[string range "happy" 4 1]
[string range "happy" 10 20]
[string range "happy" 100 200]
would produce this "".
If i were working my way through a long string and was using lappend to build a list, I might slip past the last letter in the string and start filling my list with a bunch of empties (or {} as they appear in the list).
So if you have a problem with an empty string mysteriously showing up in your list, check to see if you are using string range cammand while building that list.
The string range function will accept a range outside the bound of the string.
this command:
[string range "happy" 1 4]
would produce "appy" as expected. But these commands:
[string range "happy" -5 -1]
[string range "happy" 4 1]
[string range "happy" 10 20]
[string range "happy" 100 200]
would produce this "".
If i were working my way through a long string and was using lappend to build a list, I might slip past the last letter in the string and start filling my list with a bunch of empties (or {} as they appear in the list).
So if you have a problem with an empty string mysteriously showing up in your list, check to see if you are using string range cammand while building that list.