Overview
| Artifact ID: | ab305f03d6dce7e42f70df8326f59098bbee1a40 |
|---|---|
| Ticket: | 1333036fffffffffffffffffffffffffffffffff
lset misshandles sublists |
| User & Date: | msofer on 2005-10-20 18:00:23 |
Changes
- icomment:
Logged In: YES user_id=148712 (Thanks dkf) This duplicates the bug within a proc body by avoiding a literal that shares the first sublist. proc bar {} { set a [list [list 1 b] [list c d]] set b $a lset b 0 0 2 ;#change one subelement in the new list puts stdout "a $a" puts stdout "b $b" };bar The problem is in the usage of the new List intrep that can be shared: duplicating the List does not cause the elements to be shared, the handling has not been done correctly in TclLsetFlat. - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"