Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 6546b7e1f63917b454eebe05eafa3b85c04fce4e
Ticket: 3612021fffffffffffffffffffffffffffffffff
info frame gives mismatching line number with info body
User & Date: jerrylipeng on 2013-04-27 09:27:43
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    See the following example:
    -----------------------------------------------------------------
    $tclsh
    % proc test {} {
    puts "line 2: [info frame 0]"
    # line 3 \  
    line 4
    puts "line 5: [info frame 0]"
    }
    % test
    line 2: type proc line 2 cmd {info frame 0} proc ::test level 0
    line 5: type proc line 5 cmd {info frame 0} proc ::test level 0
    % info body test
    
    puts "line 2: [info frame 0]"
    # line 3  line 4
    puts "line 5: [info frame 0]"
    
    % 
    -----------------------------------------------------------------
    The second 'info frame' gives line 5 which is reasonable. 
    But it is in line 4 of  the string returned by 'info body' (because '\' is removed and line 3 and line 4 are joined together.)
    Is it possible make the line numbers consistent between 'info frame' and 'info body'?
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "jerrylipeng"
  10. subsystem changed to: "None"
  11. title changed to:
    info frame gives mismatching line number with info body
    
  12. type changed to: "Bug"