Artifacts Associated With Ticket 2895741fffffffffffffffffffffffffffffffff
Ticket change [9f063f5e51] (rid 96574) by john13a on 2009-11-11 06:35:58:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- 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)
- foundin initialized to: "obsolete: 8.5.7"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "john13a"
- subsystem initialized to: "20. [interp]"
- title initialized to: "expr min and max don't work in a safe interp"
- type initialized to: "Bug"
Ticket change [33886c8f12] (rid 106609) by dkf on 2009-11-11 19:51:38:
- priority changed to: "8"
Ticket change [dd5c545419] (rid 114653) by dgp on 2009-11-11 22:27:01:
- 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.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [e4a9dd5f4b] (rid 87993) by john13a on 2009-11-11 22:33:10:
- 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.
- login: "john13a"
- mimetype: "text/plain"
- username: "john13a"
- icomment:
Ticket change [c55dd8777c] (rid 111993) by dkf on 2009-11-11 22:40:09:
- assignee changed to: "dgp"
- 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).
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [0c0aab3337] (rid 114109) by dgp on 2009-12-10 02:46:46:
- priority changed to: "9 Immediate"
Ticket change [d573b2e105] (rid 123626) by dkf on 2009-12-29 21:56:55:
- 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.
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "dkf"
- icomment: