Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2007-10-28
09:10 • Ticket [1639858fff] Correct upvar and uplevel error message status still Ope... artifact: 208f57cf60 user: msofer
2007-09-11
01:38 • Ticket [1639858fff]: 1 change artifact: 4d9a820227 user: msofer
2007-01-20
04:20 • Ticket [1639858fff]: 2 changes artifact: 28ff1fd89a user: dkf
04:02 • Ticket [1639858fff]: 4 changes artifact: 26df540dd9 user: nobody
04:02 • Add attachment tcl-8.4.13-upvar-msg.patch to ticket [1639858fffffffff|1... artifact: f8846cfa58 user: nobody
2007-01-19
21:02 • New ticket [1639858fff] Correct upvar and uplevel error message. artifact: 134a4fd462 user: nobody

Correct upvar and uplevel error message

Open1639858fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 19 years ago
Descriptionplain2007-01-19 21:02:21
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] }
nobodyplain2007-01-20 04:02:24
File Added - 212117: tcl-8.4.13-upvar-msg.patch
dkf Ticket [1639858fff]: 2 changes [History diff]2007-01-20 04:20:25
msofer Ticket [1639858fff]: 1 change [History diff]2007-09-11 01:38:42
msoferplain2007-10-28 09:10:11
Logged In: YES 
user_id=148712
Originator: NO

The error message would be misleading for
  upvar x a b
Log in (anonymous is fine) to add a comment.

Attachments: