Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b0294d508d255944c918c641ca2ea355a24675ec
Ticket: bfe0f34e6ca558c525d3d649f93970e2267b5ff1
catch and yieldto
User & Date: pooryorick on 2017-06-05 03:09:20
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    In a coroutine, when there's a [yieldto] inside a [catch] script, and the thing
    yielded to produces an error, that error isn't propagated back to the first
    coroutine:
    
    <code><verbatim>
    coroutine c2 ::apply {{} {
        yield
        error "this isn't caught"
    }}
    
    coroutine c1 ::apply {{} {
        catch {yieldto c2}
        # Control never gets to this point.
        puts hello
    }}
    </verbatim></code>
    
  5. foundin changed to: "8.7"
  6. is_private changed to: "0"
  7. login: "pooryorick"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "e476148cded301ffff84bcdc432536dc0c949e88"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "pooryorick"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to: "catch and yieldto"
  16. type changed to: "Bug"