wduquette / molt

Embeddable TCL Interpreter for Rust applications
BSD 3-Clause "New" or "Revised" License
103 stars 12 forks source link

"set a(1)" for unknown index 1 throws "no such variable" #60

Closed wduquette closed 4 years ago

wduquette commented 4 years ago

If the variable a doesn't exist, then set a(1) should throw can't read "a(1)": no such variable. But if a exists and is an array variable but doesn't contain that element, it should throw can't read "a(1)": no such element in array. At present it throws the no such variable message in both cases.

wduquette commented 4 years ago

Fixed on array-variables branch; close after merge.

wduquette commented 4 years ago

Merged.