Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e0f953f1794ebf56f4f4e0873d2e14e9b43ae4f9740bce86df98f8a6153b85fc
Ticket: e778e3f804cacd70deefcdf5ed5d1f8921f32ab1
Parsing of "profile" for TIP #656
User & Date: apnadkarni on 2023-02-28 16:57:09
Changes

  1. icomment:
    I'll fix the missing "replace" and alphabetical order.
    
    I didn't use Tcl_GetIndexFromObjStruct specifically because it cannot be used from the configure which only has a string and not a Tcl_Obj. Allocating a Tcl_Obj just to call Tcl_GetIndexFromObjStruct did not seem like a good trade-off. I was not in favour of using Tcl_GetIndexFromObjStruct in one place and then using an inline loop (much less readable imo) in the configure code as you have done for essentially the same function. I much prefer code for a specific purpose to be encapsulated into a single function.
    
    Thanks for the feedback.
    
    /Ashok
    
  2. login: "apnadkarni"
  3. mimetype: "text/plain"