Skip to content
Tcl Source Code Artifact [2fe04cc385]
Login

Artifact [2fe04cc385]

Artifact 2fe04cc3851c58164e6605878c8b90687afaa045:

Ticket change [2fe04cc385] - Ticket [bfe0f34e6ca558c5|bfe0f34e6c] <i>catch and yieldto</i> status still Open with 3 other changes by ferrieux on 2017-06-05 09:29:52.
D 2017-06-05T09:29:52.633
J icomment Hum,\smisread\sthe\soutput.\sResumption\sof\sthe\scoro\sfloor\sdoesn't\sreally\srestore\sthe\serror\scontext,\sit\sjust\sgets\sa\sstale\serrorstack.\sMy\sbad.\s\r\n\r\nSo\sthe\sworkaround\sis\sdifferent:\sto\sget\sthat\sdistal\serror\syou\smust\scatch\sthe\sdistal\scoro\sfloor\sfrom\sthe\s"synchronous\sinvocation"\sthat\sstarts\sthe\syieldto\schain,\swhich\sis\seither\sthe\sinitial\sone\sor\sa\sresumption:\r\n\r\n%\scoroutine\scoro3\sapply\s{{}\s{\syield;error\sCORO3}}\r\n%\scoroutine\scoro2\sapply\s{{}\s{\syield;yieldto\scoro3}}\r\n%\scatch\s{coroutine\scoro1\sapply\s{{}\s{\syieldto\scoro2}}}\se;puts\sCAUGHT:$e\r\nCAUGHT:CORO3\r\n\r\n%\scoroutine\scoro3\sapply\s{{}\s{\syield;error\sCORO3}}\r\n%\scoroutine\scoro2\sapply\s{{}\s{\syield;yieldto\scoro3}}\r\n%\scoroutine\scoro1\sapply\s{{}\s{yield;yieldto\scoro2}}\r\n%\scatch\scoro1\se;puts\sCAUGHT:$e\r\nCAUGHT:CORO3
J login ferrieux
J mimetype text/plain
K bfe0f34e6ca558c525d3d649f93970e2267b5ff1
U ferrieux
Z ef7715656561eb537bd007b0b24a47e8