Artifacts Associated With Ticket 04ac7a9d9
Ticket change [0bd6cded45] (rid 241630) by apnadkarni on 2025-06-18 05:54:17:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-markdown"
- comment initialized to:
lsearch shimmers abstract lists that do not themselves implement lsearch functionality. For example, ``` % set l [lrepeat 200 x]; 'rep $l value is a list with a refcount of 3, object pointer at 0x1ffa0163cb0, internal representation 0x1ffa01477f0:0x0, no string representation % lsearch $l x 0 % 'rep $l value is a list with a refcount of 3, object pointer at 0x1ffa0163cb0, internal representation 0x1ffa01477f0:0x0, no string representation ``` Either lsearch should be modified to use `Tcl_ListObjIndex` for abstract lists or abstract lists in the core should implement lsearch themselves (or both). Note `lseq` already implements lsearch.
- foundin initialized to: "9.1a1"
- is_private initialized to: "0"
- login: "apnadkarni"
- priority initialized to: "5 Medium"
- private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "apnadkarni"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to: "lsearch shimmers abstract lists"
- type initialized to: "RFE"
Ticket change [3702691a27] (rid 241631) by apnadkarni on 2025-06-18 05:54:43:
- assignee changed to: "apnadkarni"
- login: "apnadkarni"
- mimetype: "text/plain"
Ticket change [fcd1e4db4a] (rid 241632) by oehhar on 2025-06-18 06:30:34:
- icomment:
Ashok, thanks for the ticket. Here is my tcl 9.0.1 session: <verbatim> % set l [lrepeat 200 x]; ::tcl::unsupported::representation $l value is a list with a refcount of 2, object pointer at 0x171023e8b20, internal representation 0x17102b66940:0x0, no string representation % lsearch $l x 0 4 % ::tcl::unsupported::representation $l value is a list with a refcount of 2, object pointer at 0x171023e8b20, internal representation 0x17102b66940:0x0, no string representation </verbatim> It was a list and still is a list. What is the supposed output? For me, shimmering is the change of the type which did not happen? This is probably obvious, but I don't see it... Thanks, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [c8c26c2bbf] (rid 241633) by apnadkarni on 2025-06-18 07:54:04:
- icomment:
Oops. Pasted the output from the wrong window. Should have been ``` % set l [lrepeat 200 x]; 'rep $l value is a repeatedList with a refcount of 3, object pointer at 0x1a7c5144f30, internal representation 0x1a7c512e0c0:0xc8, no string representation % lsearch $l x 0 % 'rep $l value is a list with a refcount of 3, object pointer at 0x1a7c5144f30, internal representation 0x1a7c69abea0:0x0, no string representation ``` Note this is for 9.1, and does not apply to 9.0.x as those do not have the relevant abstract lists anyways.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [e185bb1e18] (rid 241636) by oehhar on 2025-06-18 08:15:48:
- comment changed to:
lsearch shimmers abstract lists that do not themselves implement lsearch functionality. For example, ``` % set l [lrepeat 200 x]; 'rep $l value is a repeatedList with a refcount of 3, object pointer at 0x1a7c5144f30, internal representation 0x1a7c512e0c0:0xc8, no string representation % lsearch $l x 0 % 'rep $l value is a list with a refcount of 3, object pointer at 0x1a7c5144f30, internal representation 0x1a7c69abea0:0x0, no string representation ``` Either lsearch should be modified to use `Tcl_ListObjIndex` for abstract lists or abstract lists in the core should implement lsearch themselves (or both). Note `lseq` already implements lsearch.
- icomment:
Ok, thanks. I have modified the original ticket to make it clearer. Now, it makes sense. Thanks, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- comment changed to: