[string insert] compiler fails
Closed / Fixed11229bad5f90d18d8e7f77f435674b8bff62f33eCreated 6 years agoUpdated 6 years ago
Descriptionplain2020-10-27 20:07:32
Thanks to "Dave B" on comp.lang.tcl for the alert about this.
Use this test to start demonstrations that bytecode compiler
for [string insert] is badly broken.
test string-31.26.$noComp {string insert, bytecompiler} -setup {
set i 2
} -body {
run {tcl::string::insert abcd $i xyz}
} -cleanup {
unset i
} -result abxyzcd
Referenced by2
1e1a593ca4[11229bad5f] Fix the bytecode compiler for [string insert]. check-in2020-10-27 20:27:1987bb381d4e[11229bad5f] New test to demonstrate the bug. check-in2020-10-27 20:09:37
dgpplain2020-10-27 20:16:20
Looks like a very simple error, returning TCL_OK, when it should be TCL_ERROR instead.
dgpplain2020-10-27 20:29:34
Simple fix committed.
Log in (anonymous is fine) to add a comment.