Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 03789fbd84068a554a51e71377a05571766d5390
Ticket: 3282869fffffffffffffffffffffffffffffffff
coroutine + eval + locals = segfault
User & Date: msofer on 2011-04-11 06:19:49
Changes

  1. icomment:
    The script to be evaled is somehow being compiled in f's context - iPtr->varFramePtr->localCachePtr points to f's. I have not yet found how or why.
    
    Do note that
    
    % proc f y {coroutine D eval {puts X$x;yield Y;puts Z}}
    % f 12
    can't read "x": no such variable
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"