Skip to content
Tcl Source Code History Of Ticket 04ac7a9d9
Login

History Of Ticket 04ac7a9d9

Artifacts Associated With Ticket 04ac7a9d9

  1. Ticket change [0bd6cded45] (rid 241630) by apnadkarni on 2025-06-18 05:54:17:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-markdown"
    4. 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.
      
    5. foundin initialized to: "9.1a1"
    6. is_private initialized to: "0"
    7. login: "apnadkarni"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "9546e9877f1a8899e25a89082561ee694e7fb402"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "apnadkarni"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to: "lsearch shimmers abstract lists"
    16. type initialized to: "RFE"
  2. Ticket change [3702691a27] (rid 241631) by apnadkarni on 2025-06-18 05:54:43:

    1. assignee changed to: "apnadkarni"
    2. login: "apnadkarni"
    3. mimetype: "text/plain"
  3. Ticket change [fcd1e4db4a] (rid 241632) by oehhar on 2025-06-18 06:30:34:

    1. 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
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  4. Ticket change [c8c26c2bbf] (rid 241633) by apnadkarni on 2025-06-18 07:54:04:

    1. 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.
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  5. Ticket change [e185bb1e18] (rid 241636) by oehhar on 2025-06-18 08:15:48:

    1. 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.
      
    2. icomment:
      Ok, thanks. I have modified the original ticket to make it clearer.
      Now, it makes sense.
      
      Thanks,
      Harald
      
    3. login: "oehhar"
    4. mimetype: "text/x-fossil-wiki"
    5. username: "oehhar"