Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c7a57f92c383d7a22f0aba4df28606f6d7a94fd912dc397081c827f6eb7c41e3
Ticket: bc7ddc7944ec60be761ad6ee54d31110926f85a8
Error: "can't convert value to type substcode"
User & Date: apnadkarni on 2023-08-10 03:06:51
Changes

  1. icomment:
    The problem is also fixed by reverting the use of TclDuplicatePureObj back to the original Tcl_DuplicateObj.
    
    I have had concerns with the introduction of TclDuplicatePureObj that has led to multiple hard to track down bugs in seemingly unrelated code.
    
    And on a cursory look, I do not see any actual benefit compared to the code prior to its introduction. (In theory, it is a "generalization" of the original list representation copying code to all Tcl_Obj but it does not seem to be used anywhere except for lists which makes the generalization not very useful.)
    
    Any opinion on reverting its use?
    
  2. login: "apnadkarni"
  3. mimetype: "text/plain"