| Ticket UUID: | 1002143 | |||
| Title: | struct::set difference broken under >=Tcl 8.4 | |||
| Type: | Bug | Version: | None | |
| Submitter: | maroc | Created on: | 2004-08-02 18:12:15 | |
| Subsystem: | struct | Assigned To: | andreas_kupries | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2004-08-05 12:44:49 | |
| Resolution: | Fixed | Closed By: | andreas_kupries | |
| Closed on: | 2004-08-05 05:44:49 | |||
| Description: |
struct::set difference [list Maryland DC Virginia]
[list DC Virginia]
returns -> Maryland
However,
struct::set difference [list "Washington, DC (District
of Columbia)" Maryland Virginia] [list "Washington, DC
(District of Columbia)" Virginia]
returns -> Maryland {Washington, DC }
Any list element with parens seems to have the parens
stripped. This doesn't happen under the alternate
definition of "proc" for Tcl 8.[23]
| |||
| User Comments: |
andreas_kupries added on 2004-08-05 12:44:49:
Logged In: YES user_id=75003 Fix committed to head and 1-6-branch. andreas_kupries added on 2004-08-05 12:31:22: Logged In: YES user_id=75003 We have different implementations for 8.[23] and 8.4+, and the implementation for 8.4+ seems to be buggy. It tries to use local vars for the set elements, to avoid an additional hash lookup, or such. Perf opt, goes through an 'eval'. It is not the eval. The '()' cause the code to think that the local is an array element. Bah. I will simply disable this special branch and use the 8.[23] implementation for all versions. andreas_kupries added on 2004-08-05 12:23:24: Logged In: YES user_id=75003 Confirmed. Testsuite extended, tracking further. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki