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
- closedate changed to: "2459385.36858199"
- closer changed to: "pooryorick"
- 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.
- login: "pooryorick"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Invalid"
- status changed to: "Closed"