Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bce5b2b7643ec98d317ffe4c0fb831b4f7f93f09e2f346e13ed9e4dc7490aff5
Ticket: 0c82728f85760f36361fe42a15f55453c94d285d
lappend/linsert ignore the abstract-list Replace hook on some code paths
User & Date: apnadkarni on 2026-10-23 06:47:09
Changes

  1. icomment:
    Just a note that makes me a bit wary of using lstring for testing after inspecting the source. Its implementation breaks EIAS. Consider
    
    ```
    % set l1 [lstring abc]
    a b c
    % set l2 [list a b c]
    a b c
    % lappend l1 xyz
    a b c x
    % lappend l2 xyz
    a b c xyz
    ```
    
    That's a no-no.
    
    Additionally, it's implementation of replaceProc is incomplete in that it does not handle multiple indices. It may suffice for very specific test cases like appending single characters but still caution is advisable.
    
    We don't seem to have any other test harness object that implements the entire abstract list API.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"