Overview
| Artifact ID: | 75ab9a99c5c73fac0b686a4574418c286f776fe2 |
|---|---|
| Ticket: | 458361ffffffffffffffffffffffffffffffffff
single word scripts get recompiled at each call |
| User & Date: | msofer on 2001-09-11 06:42:58 |
Changes
- icomment:
Logged In: YES user_id=148712 Consider set a 1 namespace eval tst { proc {set a} {args} {return YES} proc t {} {{set a}} t } After this the literal {set a} is a tclCmdNameType. If you now send the script {set a} to Tcl_EvalObjEx from the global namespace you may get in trouble. Now: command names with spaces are risky/difficult in any case. Plus, this is an abstract fear: I did not manage to trigger such an error from a script. Also: I have the same fear for a script accidentally shimmering into a pure list before being [eval]'ed, causing the pure list optimisation to produce an error. As far as I know, there are no reports of such a thing ever happening - so the fear is probably unfounded. - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"