Overview
| Artifact ID: | 55ee1f94bbeb860362491bf767dc8019a1667ac1 |
|---|---|
| Ticket: | d87cb182053fd79b3fc16054526620f2dfb25d96
inconsisency in behaviour of tailcall from (builtin) namespace ensembles |
| User & Date: | anonymous on 2015-03-19 02:03:54 |
Changes
- comment changed to:
Using [tailcall] from a proc in a namespace ensemble's -map used to work as expected on 8.6.0. On 8.6.1 and later, something changed: # tailcall and uplevel identity: proc it {} { tailcall try { puts it:[::incr x] } } proc iu {} { uplevel 1 { puts iu:[::incr x] } } proc aa {} { it iu return $x } puts aa:[aa] ;# it:1 iu:2 aa:2 - as expected # now try in an ensemble: namespace eval ens { namespace ensemble create } namespace ensemble configure ens -map {it ::it ut ::ut} proc ab {} { it iu return $x } puts ab:[ab] ;# it:1 iu:2 ab:2 - as expected # now try with an existing ensemble: set map [namespace ensemble configure dict -map] dict set map it ::it dict set map iu ::iu namespace ensemble configure dict -map $map proc ac {} { dict it dict iu return $x } puts ac:[ac] ;# iu:1 it:1 ac: - not at all as expected! - login: "anonymous"
- mimetype: "text/plain"