This is a Bug while trying to retrieve element with index greater than list size.
For Eg :
set list { a b c }
llength $list = 3
lindex $list 0 = a
lindex $list 1 = b
lindex $list 2 = c
Bug : lindex $list 4 = null
WorkAround :
lindexWarn { l idx } {
if { $idx > [ llength $l ]}{
error "$idx...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.