|
2016-03-30
| ||
| 16:20 | • Ticket [2923d52832] INST_STR_MATCH != TclStringMatchObj() status still Open ... artifact: 220fae1d2e user: dgp | |
| 16:05 | • New ticket [2923d52832]. artifact: cbf1ff2117 user: dgp | |
INST_STR_MATCH != TclStringMatchObj()
Open2923d52832931c60b2163b2e4b09c828d710a2f0Created 11 years agoUpdated 11 years ago
Descriptionplain2016-03-30 16:05:15
In tclExecute.c, the implementation of the INST_STR_MATCH instruction pretty apparently wants to be the same function as the internal routine TclStringMatchObj(). However, the code is not the same. It appears the tclExecute.c code is correct, since the TclStringMatchObj() routine in tclUtil.c is written so that a whole stanza is unreachable. This feels so wrong to have this code duplication. Is it truly unacceptable in some way to just have tclExecute.c call TclStringMatchObj() when it needs it? If so, might we at least use a common macro expansion in both places? See also http://core.tcl.tk/tcl/tktview?name=85b87a7570
dgpplain2016-03-30 16:20:08
ok, I misread it. The stanza is not unreachable. The two code sections do implement different logic though, and I cannot see why they ought not be the same -- and in fact be the same chunk of code.
Log in (anonymous is fine) to add a comment.