Skip to content
Tcl Source Code History Of Ticket 0b8c387cf7
Login

History Of Ticket 0b8c387cf7

Artifacts Associated With Ticket 0b8c387cf7

  1. Ticket change [b810b61f67] (rid 145355) by dgp on 2016-03-08 18:03:12:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Tcl_VarEval() is a deprecated routine.
      
      To move toward its elimination, we at least must
      stop using it ourselves.
      
      It is used in the server socket accept callback evaluation.
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "dgp"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "dgp"
    13. subsystem initialized to: "27. Channel Types"
    14. title initialized to: "Stop using deprecated Tcl_VarEval()"
    15. type initialized to: "Bug"
  2. Ticket change [1568a158ae] (rid 145359) by dgp on 2016-03-08 18:07:47:

    1. icomment:
      
      Branch bug-0b8c387cf7 has a proposed revision to
      do away with the Tcl_VarEval() call.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  3. Ticket change [f421606c35] (rid 145360) by dgp on 2016-03-08 18:17:41:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      
      The proposed revision has been written to
      reproduce the behavior of the Tcl_VarEval()
      call, which in the long run may not be the
      best idea.
      
      The Tcl_VarEval() routine builds and evaluates
      a script, not a command.  Although for some time
      we've been documenting that server socket accept
      callbacks are single commands, the implementation
      has never agreed.  See
      
      http://core.tcl.tk/tcl/info/2957688
      
      Possibly much worse, there is no control in place
      to determine the context of the callback script
      evaluation.  It is evaluated in whatever context
      is current in the interp, whether that be a namespace,
      or the body context of some invocation of some proc.
      Most callbacks in Tcl are forced to evaluate in global
      context for predictable behavior.  It's surprising to me
      that's not been done with server socket accept callbacks,
      but Tcl_VarEval() just evaluates where it is.
      
      It would be easy to change this in the revised implementation
      by just adding the TCL_EVAL_GLOBAL flag to the
      Tcl_EvalObjEx() call.  I can't think of a good reason not
      to make this change now that it's easy.
      
      Review and comment invited.
      
    3. login: "dgp"
    4. mimetype: "text/plain"
  4. Ticket change [659cdbb80f] (rid 145706) by dgp on 2016-03-17 13:26:34:

    1. assignee changed to: "dgp"
    2. icomment:
      
      Thanks for confirming TCL_EVAL_GLOBAL
      is the right thing.  Merged to trunk.
      
    3. login: "dgp"
    4. mimetype: "text/plain"
  5. Ticket change [65dd2a1a32] (rid 145707) by dgp on 2016-03-17 13:26:50:

    1. closedate changed to: "2457465.0603124"
    2. closer changed to: "dgp"
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "Accepted"
    6. status changed to: "Closed"