Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1410c035d2be90c14309ad42c5eded66d493565f
Ticket: 3048771fffffffffffffffffffffffffffffffff
tailcall constraints chafe with control command procs
User & Date: dgp on 2010-08-24 20:51:42
Changes

  1. icomment:
    
    One place where this implementation may
    cause surprise is with commands like [subst]
    that have their own treatment of TCL_RETURN.
    
    proc demo {template} {
        ...
        set result [subst $template]
        ....
        return $result
    }
    demo {[tailcall puts foo]}
    
    The [subst] will effectively [catch] the TCL_RETURN.
    The rest of [demo] will run, and then, possibly long
    after the [subst], when [demo] returns, its results will
    get replaced by the results of running [puts foo].
    
    Similar issue is possible with [source].
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"