Overview
| Artifact ID: | ffe0c0d046841d51cd079f5e1092dafe271c6831 |
|---|---|
| Ticket: | 458361ffffffffffffffffffffffffffffffffff
single word scripts get recompiled at each call |
| User & Date: | msofer on 2001-09-11 18:41:54 |
Changes
- icomment:
Logged In: YES user_id=148712 The feared scenario is: - a literal (say {set a}) is validly interpreted as a command name in one context, hence retains tclCmdNameType - later on, the same literal is evaled in another context where it is *not* a valid command name but it *is* a valid script Now, without the patch there would be no problem: the literal is parsed and compiled. With the patch, there is no parsing or compiling: the literal is still assumed to be a command name; the lookup fails, you get an "invalid command name" OK, I did find how to how to trigger this: set a 1 namespace eval tst { proc {set a} {args} {return YES} proc t {} {{set a}} t } namespace eval tst2 {set a} Without the patch, the last return value is "1". With the patch, you get invalid command name "set a" - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"