Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: adde5417b18af4b4b394a396d53e51a40e9e54af
Ticket: 05489ce33509af52219db03214faf1445dcab5a4
for-8.[124568] stack management panic
User & Date: dgp on 2015-09-24 14:18:24
Changes

  1. icomment:
    
    This is more than just stack management issues.
    The bytecode produces the wrong result.
    
    Here's a more direct demo:
    
    % info patch
    8.6.4
    % apply {{} {list GOOD [for {} {1} {list BAD [break]} {}]}}
    GOOD {}
    
    % info patch
    8.5.18
    % apply {{} {list GOOD [for {} {1} {list BAD [break]} {}]}}
    BAD {}
    
    Trunk Tcl gets it right. core-8-5-branch is broken.
    
    When working properly, the [break] exception should clear the BAD
    off the execution stack and then the list {GOOD {}} gets formed
    from GOOD lower on the stack and the {} that is the result of [for].
    
    In 8.5, the BAD is not taken off the stack, and the list is formed
    out of the wrong values.
    
  2. login: "dgp"
  3. mimetype: "text/plain"