Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7d8a10c29391d43eebb7c0aa2d6ea0ede5bea2fe
Ticket: 2153080fffffffffffffffffffffffffffffffff
coroutine deletion, yield should error
User & Date: msofer on 2009-05-08 09:03:47
Changes

  1. closedate changed to: "2009-05-08T02:03:47"
  2. closer changed to: "msofer"
  3. icomment:
    
    
    allow_comments - 1
    
    To be clear: the coroutine IS deleted after that yield - the command is marked as deleted when renamed to {}, and effectively deleted when it yields. The proof: run the following script (under nice, tight busy loop!) and watch the memory it uses: it is constant.
    
    proc a {} {
        puts -nonewline .
        flush stdout
        rename [info coroutine] {}
        yield
    }
    
    while 1 {
        coroutine b[incr i] a
    }
    
    
    
  4. login: "msofer"
  5. mimetype: "text/plain"
  6. resolution changed to: "Fixed"
  7. status changed to: "Closed"
  8. username: "msofer"