Overview
| Artifact ID: | f64500f01ddf6c53399642307e301d08485460c4541f6b64e8d582804ba8e8c9 |
|---|---|
| Ticket: | 8b9854c3d8ba8d64a7d3a9b20dfec552c8ee5f54
[info level 0] returns incompatible result in exported command since Tcl 8.6.9 |
| User & Date: | dgp on 2019-06-21 18:54:04 |
Changes
- icomment:
puts "Using Tcl [package present Tcl]" namespace eval origin { namespace path ::tcl::mathop proc foo n { if {$n == 0} {return 1} return [* $n [namespace inscope [namespace current] [lreplace [info level 0] 1 1 [incr n -1]]]] } namespace export foo } namespace eval demo { namespace import ::origin::foo rename foo fact namespace export fact namespace ensemble create } namespace eval caller { proc fact {n} {error BROKEN!} puts [demo fact 3] } Using Tcl 8.5.19 6 Using Tcl 8.6.8 6 Using Tcl 8.6.9 invalid command name "fact" while executing "fact 2" (in namespace inscope "::origin" script line 1) invoked from within "namespace inscope [namespace current] [lreplace [info level 0] 1 1 [incr n -1]]" (procedure "fact" line 3) invoked from within "demo fact 3" (in namespace eval "::caller" script line 3) invoked from within "namespace eval caller { proc fact {n} {error BROKEN!} puts [demo fact 3] }" (file "/home/dgp/recur.tcl" line 16) Using Tcl 8.6.10 6 - login: "dgp"
- mimetype: "text/plain"