| Ticket UUID: | 1639858 | ||
| Title: | Correct upvar and uplevel error message | ||
| Type: | Patch | Created on: | 2007-01-19 21:02:21 |
| Submitter: | nobody | Assigned to: | msofer |
| Subsystem: | 07. Variables | Severity: | |
| Priority: | 5 Medium | Last modified: | 2007-10-28 09:10:11 |
| Status: | Open | Closed by: | |
| Resolution: | None | Closed on: | |
| Version: | None | ||
| Description: | ||||
upvar and uplevel give misleading error message when level argument is defaulted to 1 but doesn't exist. For example:
% upvar x y
bad level "x"
% uplevel puts Hello
bad level "puts"
The patch alters TclGetFrame routine to remedy that, so the message is:
bad level "1"
{ [email protected] }
| ||||
| User Comments: | ||||
nobody added on 2007-01-20 04:02:24:
File Added - 212117: tcl-8.4.13-upvar-msg.patch msofer added on 2007-10-28 09:10:11:
Logged In: YES user_id=148712 Originator: NO The error message would be misleading for upvar x a b | ||||
Attachments:
- tcl-8.4.13-upvar-msg.patch [download] added by nobody on 2007-01-20 04:02:21. [details]
