Overview
| Artifact ID: | 7d8a10c29391d43eebb7c0aa2d6ea0ede5bea2fe |
|---|---|
| Ticket: | 2153080fffffffffffffffffffffffffffffffff
coroutine deletion, yield should error |
| User & Date: | msofer on 2009-05-08 09:03:47 |
Changes
- closedate changed to: "2009-05-08T02:03:47"
- closer changed to: "msofer"
- 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 } - login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "msofer"