Compiled switch uses -glob mode by default, whereas
doc and Tcl_SwitchObjCmd use -exact mode.
---
proc test {} {
# this one is compiled
switch -- aa {
a* {puts "glob"}
aa {puts "exact"}
}
# not this
switch aa {
a* {puts "glob"}
aa {puts "exact"}
}
}
---
tclsh85 % test
glob
exact
tclsh85 %
See tclCompCmds.c 1.46, TclCompileSwitchCmd(), line
2905.
Logged In: YES
user_id=148712
assigning to Donal - I have not yet looked at this, and he
probably still has it cached in short-term memory
Logged In: YES
user_id=79902
Rats.