Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d0917825c8916cd44b018dcc2bba8a8ed8eca36eda15b35f506a991db0fa5c03
Ticket: b80ccfcf323bc45619e14388603176d573a61cf0
a coroutine calls yieldto to yieldto itself, and loses control
User & Date: pooryorick on 2021-06-19 16:58:20
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    As of at least [07f12cf7209a23], core-8-branch, control never reaches the
    [error] command:
    
    <code><verbatim>
    proc p0 {} {
    	coroutine c2 p1
    	error {error after returning from c2}
    }
    
    
    proc p1 {} {
    	yieldto yieldto [list [info coroutine]]
    }
    
    coroutine c1 p0
    puts {no error}
    </verbatim></code>
    
    <b>Output:</b>
    
    <verbatim>
    no error
    </verbatim>
    
  5. is_private changed to: "0"
  6. login: "pooryorick"
  7. priority changed to: "5 Medium"
  8. resolution changed to: "None"
  9. severity changed to: "Critical"
  10. status changed to: "Open"
  11. submitter changed to: "pooryorick"
  12. subsystem changed to: "- New Builtin Commands"
  13. title changed to:
    a coroutine yieldsto to yieldto itself, and loses control
    
  14. type changed to: "Bug"