Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[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
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.