Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

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

  1. closedate changed to: "2459385.36858199"
  2. closer changed to: "pooryorick"
  3. icomment:
    I see now that the example script is doing the right thing.  First c2 yields,
    and the second yieldto then takes place in the context of c1, causing c1 to
    yield back to c2.  c1 is then no longer on the stack, so when p1 returns, it's
    no longer returning to p0, which is part of thce c1 context.  Instead it
    returns to the caller of c1, as expected.
    
  4. login: "pooryorick"
  5. mimetype: "text/x-fossil-wiki"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"