|
2016-03-11
| ||
| 15:45 | • Closed ticket [20a81392ec]: error msg housekeeping in TclCompileScript plus ... artifact: 571b6c00c5 user: dgp | |
|
2013-08-14
| ||
| 17:33 | • Ticket [20a81392ec]: 3 changes artifact: 383aac30d0 user: dgp | |
|
2013-06-24
| ||
| 19:29 | • Ticket [20a81392ec]: 3 changes artifact: 64d78eccba user: dgp | |
| 19:24 | • Ticket [20a81392ec]: 3 changes artifact: 617ee93a98 user: dgp | |
| 19:23 | • Ticket [20a81392ec]: 3 changes artifact: cba7c64732 user: dgp | |
| 19:22 | • New ticket [20a81392ec]. artifact: 5ea3cd7ac1 user: dgp | |
error msg housekeeping in TclCompileScript
Closed / Out of Date20a81392ec05bcd12a6837fe3b14605647458a19Created 13 years agoUpdated 11 years ago
Descriptionplain2013-06-24 19:22:39
% proc foo {} {catch {expr !1.x}; {}{}}
% foo
extra characters after close-brace
% set errorInfo
invalid bareword "x"
in expression "!1.x";
should be "$x" or "{x}" or "x(...)" or ...
(parsing expression "!1.x")
invoked from within
"{}{}"
(procedure "foo" line 1)
invoked from within
"foo"
This illustrates the defect that Tcl_ResetResult()
is not called each pass through the do {...} while ()
loop in TclCompileScript().
dgp Ticket [20a81392ec]: 3 changes
[History diff]2013-06-24 19:23:20
dgpplain2013-06-24 19:24:28
Corrected results:
% proc foo {} {catch {expr !1.x}; {}{}}
% foo
extra characters after close-brace
% set errorInfo
extra characters after close-brace
while executing
"{}{}"
(procedure "foo" line 1)
invoked from within
"foo"
dgpplain2013-06-24 19:29:08
Another demo:
% proc foo {} {catch {expr !1.x}; expr !1.bar}
% foo
invalid bareword "bar"
in expression "!1.bar";
should be "$bar" or "{bar}" or "bar(...)" or ...
% set errorInfo
invalid bareword "x"
in expression "!1.x";
should be "$x" or "{x}" or "x(...)" or ...
(parsing expression "!1.x")
(parsing expression "!1.bar")
invoked from within
"expr !1.bar"
(procedure "foo" line 1)
invoked from within
"foo"
dgpplain2013-08-14 17:33:15
This is fixed on trunk for 8.6.1. Have to decide whether to backport for 8.5.15.
dgpplain2016-03-11 15:45:14
Not backported to 8.5 by now it's not going to happen.
Log in (anonymous is fine) to add a comment.