| Ticket UUID: | 1854399 | ||
| Title: | compiled [switch -regexp --] is broken | ||
| Type: | Bug | Created on: | 2007-12-19 20:35:47 |
| Submitter: | dgp | Assigned to: | msofer |
| Subsystem: | 47. Bytecode Compiler | Severity: | |
| Priority: | 9 Immediate | Last modified: | 2007-12-20 04:10:03 |
| Status: | Closed | Closed by: | hobbs |
| Resolution: | Fixed | Closed on: | 2007-12-19 21:10:03 |
| Version: | obsolete: 8.5.0 | ||
| Description: | ||||
% proc try {} {
switch -regex -- 0 {
{[0-9]+} {return true}
default {return false}
}
}
% try
false
% proc try2 {} {
set switch switch
$switch -regexp -- 0 {
{[0-9]+} {return true}
default {return false}
}
}
% try2
true
% proc try3 {} {
switch -regexp 0 {
{[0-9]+} {return true}
default {return false}
}
}
% try3
true
This breaks the struct
package in tcllib pretty bad.
| ||||
| User Comments: | ||||
hobbs added on 2007-12-20 04:10:03:
Logged In: YES user_id=72656 Originator: NO * generic/tclCompCmds.c (TclCompileSwitchCmd):update switch -regexp * tests/switch.test-14.*:compilation to pass the cflags to INST_REGEXP (changed on 12-07). Added tests for switch -regexp compilation (need more). [Bug 1854399] | ||||
