Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 30653bd5f9bc956187d5a580c34f621313de5dbc63a6616c34fc97d3ba05d27b
Ticket: 9bdd5788e370acc24ddc8a57e5291832aada8e6b
TCL 8.6.8 does not work with Tcl_SetCommandInfo on some commands
User & Date: dgp on 2018-11-19 21:15:05
Changes

  1. closedate changed to: "2458442.38548242"
  2. closer changed to: "dgp"
  3. icomment:
    
    For the example you provide, the change from Tcl 8.5 to Tcl 8.6 that is most likely at work is that [tcl::clock::seconds] is compiled and executed as bytecode in 8.6. There is no dispatch to a command procedure, so CmdInfo customizations have no effect.
    
    Yet your comment suggests that you understand that, so I'm left not understanding what your question is.
    
    The Tcl_RecordAndEval() routine screens out any TCL_EVAL_DIRECT flag, so using it leaves you with no power to override the decision to compile to bytecode. Maybe that's a poor design, but it raises the question of why you are using it.  What reason do you have for calling Tcl_RecordAndEval() over the many better evaluation options?
    
    For what it's worth, modern core developers would also be very very happy to see you stop all use of the Tcl_CmdInfo struct and associated routines. The need to continue supporting them is a drag on further improvements to Tcl command evaluation.
    
    If there's some functionality this offers that is otherwise not available, can you help us understand what it is so we can consider offering an alternative approach? Evaluation tracing needs ought to be covered with other interfaces.
    
  4. login: "dgp"
  5. mimetype: "text/plain"