Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d0608a3e663ec2714a3da5a13a2767a1e5df766b338faad0c0adbb2c038059ba
Ticket: 723a2f4ac32c306a16919568acaf0b78304dea7d
return -code break/tailcall break from coroutine goes wrong at the top-level
User & Date: dgp on 2018-08-02 12:43:17
Changes

  1. icomment:
    
    There are two bugs here. A fix for the problem
    with coroutine is now on branch bug-723a2f4ac3 .
    Please test and comment.
    
    The second 'bug' is with tailcall, and is best demo'd
    without any confounding coroutine:
    
    % proc p {} {tailcall break}
    % while 1 break
    % while 1 p
    invoked "break" outside of a loop
    
    It's not quite so clear to me what's correct
    for this case.
    
  2. login: "dgp"
  3. mimetype: "text/plain"