Tcl Source Code

Ticket Change Details

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:

    proc means that the command is found in dynamically 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"