Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 77228c15637d88cc44f477c6472aa3c117883dd1
Ticket: 1446696fffffffffffffffffffffffffffffffff
Tcl_ParseArgv as a useful non-Tk version of Tk_ParseArgv
User & Date: sbromle on 2006-04-04 02:04:03
Changes

  1. icomment:
    Logged In: YES 
    user_id=1472195
    
    W.r.t. the use of Tcl_GetIndexFromObj(), I did consider
    it, and originally decided that it was not the way to go.
    If I wished to implement a single command, I would surely
    have used it, however, the benifit of the tclArgv approach,
    is that the writer of the C implemented command can quite
    cleanly package everything up into a single array of
    Tcl_ArgInfo structures, and specify
    type checking and conversion all in one neat place.
    
    So,I originally opted for the simplicity of the current
    code. I have however now rewritten it to use
    Tcl_GetIndexFromObjStruct, to remove the parsing bit,
    as per your suggestion. I hope this is less bizarre. :)
    
    
  2. login: "sbromle"
  3. mimetype: "text/plain"
  4. username: "sbromle"