Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: fca2e26f07dfd94410494a6f0ffb2218ebf59fc5
Ticket: a90d9331bc4b9f88384d65337e36f399ea01f597
panic in [yieldto] reachable from script
User & Date: dkf 2014-01-21 15:22:50
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/html"
  4. comment changed to:
    This code:
    <pre>
    namespace eval foo {
        proc bar {} {
            puts a
            yield OUT
            puts b
            yieldto ::return -level 0 123
            puts c
        }
    }
    puts [coroutine co foo::bar]
    namespace delete foo
    namespace eval foo {}
    puts [co]
    co
    </pre>
    Should print this:
    <pre>
    a
    OUT
    b
    123
    c
    </pre>
    But instead I get this:
    <pre>
    a
    OUT
    b
    <span style="color:red">yieldto failed to find the proper namespace</span>
    <span style="color:red">Abort trap: 6</span>
    </pre>
    The bytecoded version on the <a href="http://core.tcl.tk/tcl/info/ef8db24f85">dkf-bytecode-8.6 branch</a> works.
    
  5. is_private changed to: "0"
  6. login: "dkf"
  7. priority changed to: "5 Medium"
  8. resolution changed to: "None"
  9. severity changed to: "Severe"
  10. status changed to: "Open"
  11. submitter changed to: "dkf"
  12. subsystem changed to: "45. Parsing and Eval"
  13. title changed to: "panic in [yieldto] reachable from script"
  14. type changed to: "Bug"