Skip to content
Tcl Source Code History Of Ticket 2895741fffffffffffffffffffffffffffffffff
Login

History Of Ticket 2895741fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 2895741fffffffffffffffffffffffffffffffff

  1. Ticket change [9f063f5e51] (rid 96574) by john13a on 2009-11-11 06:35:58:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      ::tcl::mathfunc::min and ::tcl::mathfunc::max are not created in a safe interp
      
      this both commands are procs, written in pure tcl [info procs ::tcl::mathfunc::*]
      
      To avoid this, create aliases for this method, but I think, this soud be created as well (like sin and cos and so on)
      
    4. foundin initialized to: "obsolete: 8.5.7"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "john13a"
    10. subsystem initialized to: "20. [interp]"
    11. title initialized to: "expr min and max don't work in a safe interp"
    12. type initialized to: "Bug"
  2. Ticket change [33886c8f12] (rid 106609) by dkf on 2009-11-11 19:51:38:

    1. priority changed to: "8"
  3. Ticket change [dd5c545419] (rid 114653) by dgp on 2009-11-11 22:27:01:

    1. icomment:
      
      This is a consequence of Tcl_Init() not
      being called on safe interps.  I was surprised
      to see that.  I'll want to restore my understanding
      of the history before leaping on this change,
      even though the requested end if clearly correct.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [e4a9dd5f4b] (rid 87993) by john13a on 2009-11-11 22:33:10:

    1. icomment:
      Of course. On the other hand even a safe interp can create this commands on his own.
      
      My suggest is to split Tcl_Init() into 2 or 3 parts, one for safe, one fore normal unsafe, and eventually a common init.
      
      
    2. login: "john13a"
    3. mimetype: "text/plain"
    4. username: "john13a"
  5. Ticket change [c55dd8777c] (rid 111993) by dkf on 2009-11-11 22:40:09:

    1. assignee changed to: "dgp"
    2. icomment:
      That's a bit complex because most of what Tcl_Init is doing is arranging for paths to be set correctly (very nasty!) and for init.tcl to be sourced (which does many things, including defining min() and max() of course).
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  6. Ticket change [0c0aab3337] (rid 114109) by dgp on 2009-12-10 02:46:46:

    1. priority changed to: "9 Immediate"
  7. Ticket change [d573b2e105] (rid 123626) by dkf on 2009-12-29 21:56:55:

    1. icomment:
      Made both max() and min() work in safe interpreters. There's still the reconsideration of just what is to be done when building a safe interpreter, but that's now a less pressing problem so the priority is dropped a bit.
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "8"
    5. username: "dkf"