Overview
| Artifact ID: | 001c241ed8a005e02a05df85eb5cb197a738fd9a |
|---|---|
| Ticket: | bfe0f34e6ca558c525d3d649f93970e2267b5ff1
catch and yieldto |
| User & Date: | ferrieux on 2017-06-05 09:09:54 |
Changes
- icomment:
Argh indeed. I wondered whether the propagation was affected by th enumber of [yieldto] hops, so I tried the following. Same result. But see what happens on resumption of the toplevel coro: % coroutine coro3 apply {{} { yield;error CORO3}} % coroutine coro2 apply {{} { yield;yieldto coro3}} % coroutine coro1 apply {{} { catch {yieldto coro2} e;puts "CORO1-CAUGHT:$e\nCORO1-ERRORSTACK:[info errorstack]"}} CORO3 % puts [info errorstack] INNER {returnImm CORO3 {}} CALL {apply {{} { yield;error CORO3}}} # at this point we've just reproduced the bug with a chain of 2 yieldtos % coro1 CORO1-CAUGHT: CORO1-ERRORSTACK:INNER {returnImm CORO3 {}} CALL {apply {{} { yield;error CORO3}}} # resuming the toplevel "coro floor" seems to restore the error context - login: "ferrieux"
- mimetype: "text/plain"