Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e067049ad33b8e1adf89d976453811f58ac40182421e564b1534481d939ca340
Ticket: f9800d52bd61f240938dbd3c3c6364c8a6184194
vwait is not NRE-enabled, and yieldto cannot find the right splicing spot
User & Date: pooryorick on 2021-06-20 18:28:46
Changes

  1. icomment:
    Here is a slightly smaller script to reproduce the issue:
    
    <code><verbatim>
    proc p0 {} {
    	yield
    	yieldto c1
    	after 0 c2 
    	vwait forever
    }
    
    proc p1 {} {
    	yield
    	tailcall c0
    }
    
    proc p2 {} {
    	yield
    	after 0 [list [info coroutine]]
    	yieldto try {yieldto c1} on error {} c1
    	yieldto try [list yieldto c1]
    }
    coroutine c0 p0
    coroutine c1 p1
    coroutine c2 p2
    after 0 [list [namespace which c0]]
    vwait forever
    </verbatim></code>
    
  2. login: "pooryorick"
  3. mimetype: "text/x-fossil-wiki"