Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

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

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. 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"}
    
  4. foundin changed to: "obsolete: 8.3.4"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "17. Commands I-L"
  10. title changed to: "info body fails if proc body was a list"
  11. type changed to: "Bug"