Tcl Source Code

Ticket Change Details
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Artifact ID: 29437f24518b7a4d16a501e8d580243e098c38e406295d88410bb8f1aa0d2464
Ticket: 2d2a32124406e8494a9d73cf2b668dcddc75fdf6
info frame does not correct recognize current type of execution scope
User & Date: sebres 2019-03-15 19:21:45

  1. Change icomment to:
    Partially the behavior may be correct - the documentation about type "proc" says:
    <b>proc</b> means that the command is found in <b>dynamically</b> created procedure body.
    So I assume, in case it is constructed "statically" from source and compiled (like TCL_LOCATION_BC), info frame just searching the type up to the source and returns it wrapped to the origin type (e. g. using TclGetSrcInfoForPc).
    But the upper case (difference by [info frame 0] and [info frame [info frame]] may occur because of the in-place change of interpreter frame levels inside InfoFrameCmd, so it is correct by direct invocation (0) and wrong by 2 commands sequentially. Additionally this is ugly and should be rewritten. WiP.
  2. Change login to "sebres"
  3. Change mimetype to "text/x-fossil-wiki"