Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 9365c160c439a17aa581d0db58a7e9ae2dab7d1b
Ticket: 2153080fffffffffffffffffffffffffffffffff
coroutine deletion, yield should error
User & Date: nobody on 2008-10-08 12:20:22
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    if one deletes a coroutine by [rename [info coroutine] {}] and then calls [yield], the coroutine is never deleted and can never be deleted, as only a [return] will effect the deletion and after [yield] the coroutine can never be called again in order to return.
    
    I suggest that both [yield] and [info coroutine] should raise an error if called from a deleted coroutine, which would cause the deletion cleanup.
    
    Alternatively, [yield] should effect the cleanup.  Note, [info coroutine] returns a fully ns-qualified {} name.
    
    - Colin.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nobody"
  10. subsystem changed to: "02. Event Loops"
  11. title changed to: "coroutine deletion, yield should error"
  12. type changed to: "Bug"