Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 20dd04dfc03b14b39871816d8d2cf99dddda021e64f258d9b2b9c8dfab5622a3
Ticket: ba6ab5eb7be965011159dc04a57820b69877ef16
[return -code] behaviour depends on how coroutine was started
User & Date: aspect on 2020-07-05 14:26:14
Changes

  1. icomment:
    The plot thickens:
    
    Works as a script:
    
    $ tclsh <(echo 'proc t {} {yield 1 ; tailcall break} ; coroutine t1 t ; while 1 {puts [t1]}')
    
    
    Fails interactively:
    
    $ tclsh < <(echo 'proc t {} {yield 1 ; tailcall break} ; coroutine t1 t ; while 1 {puts [t1]}')
    invoked "break" outside of a loop
    
  2. login: "aspect"
  3. mimetype: "text/plain"