Skip to content
Tcl Source Code View Ticket
Login

View Ticket

confusing docs of enterstep tracing

Closed / Fixed1701540fffffffffffffffffffffffffffffffffCreated 20 years agoUpdated 19 years ago
Descriptionplain2007-04-16 13:50:43
I submit that 
  "every Tcl command which is executed until the procedure 'name' returns" 
is a better description than
  "every Tcl command which is executed inside the procedure 'name'"
for the following behaviour:

% proc foo script {uplevel #0 $script}
% proc moo script {foo $script}
% trace add execution moo enterstep tr
% proc tr args {puts $args}
% moo {set x 1}
{foo {set x 1}} enterstep
{uplevel #0 {set x 1}} enterstep
{set x 1} enterstep
1
dkf Ticket [1701540fff]: 2 changes [History diff]2007-05-14 20:08:17
dgp Ticket [1701540fff]: 1 change [History diff]2007-10-31 23:52:29
dkfplain2007-12-13 18:11:00
Logged In: YES 
user_id=79902
Originator: NO

Clarified (and also 'leavestep' which suffered from the same weakness).
Log in (anonymous is fine) to add a comment.