Overview
| Artifact ID: | 0cd838e54de193b9334168cb4dd87a32e0e3a612 |
|---|---|
| Ticket: | 545644ffffffffffffffffffffffffffffffffff
info body fails if proc body was a list |
| User & Date: | nobody on 2002-04-18 13:33:13 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
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"} - foundin changed to: "obsolete: 8.3.4"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "17. Commands I-L"
- title changed to: "info body fails if proc body was a list"
- type changed to: "Bug"