|
2002-04-18
| ||
| 21:17 | • Closed ticket [545644ffff]: info body fails if proc body was a list plus 3 o... artifact: a81bf4dba7 user: dkf | |
| 13:33 | • New ticket [545644ffff]. artifact: 0cd838e54d user: nobody | |
info body fails if proc body was a list
Closed / Fixed545644ffffffffffffffffffffffffffffffffffCreated 25 years agoUpdated 25 years ago
Descriptionplain2002-04-18 13:33:13
OS Platform: Windows 2000
Problem Behavior:
[info body] returns an empty string instead of the
body of a procedure that was defined as a list, and
not yet compiled. The proc still works, but
introspection is impossible.
Workaround: turn the body into a string, by appending
e.g. a space (see example below)
Expected behavior:
Return the string representation of the body in all
cases
Concise code sample: (interactive shell)
X:\home\suchenwi>tclsh
% proc test2 0 [list expr {$0 == "x"}]
% info body test2
% test2 x
1
% proc test3 0 "[list expr {$0 == "x"}] "
% info body test3
expr {$0 == "x"}
dkf Closed ticket [545644ffff].
[History diff]2002-04-18 21:17:54
Log in (anonymous is fine) to add a comment.