summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2004-11-03 20:30:11 (GMT)
committerdgp <dgp@noemail.net>2004-11-03 20:30:11 (GMT)
commit02c5ff7844d0d8521199bf3a034d75716282d516 (patch)
treeb43881df749deba7c22d62dd22deef72b8a92ac6 /library
parent8df0970d86515ca5c257246f7d81c8d7c859bee2 (diff)
downloadtcl-02c5ff7844d0d8521199bf3a034d75716282d516.zip
tcl-02c5ff7844d0d8521199bf3a034d75716282d516.tar.gz
tcl-02c5ff7844d0d8521199bf3a034d75716282d516.tar.bz2
* library/init.tcl ([unknown]): Corrections to the 2004-10-25 mods
to Aunt ??? in [unknown]. Flaws revealed by Itcl test suite, which still apparently relies on this brokenness. Also added comment suggesting the error message that any code using this hack *ought* to receive in reply. FossilOrigin-Name: bfb33ac10c5a3e540d7e7514f4549cafca75dbbc
Diffstat (limited to 'library')
-rw-r--r--library/init.tcl6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 96a2bad..c16e515 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -3,7 +3,7 @@
# Default system startup file for Tcl-based applications. Defines
# "unknown" procedure and auto-load facilities.
#
-# RCS: @(#) $Id: init.tcl,v 1.66 2004/10/25 17:24:40 dgp Exp $
+# RCS: @(#) $Id: init.tcl,v 1.67 2004/11/03 20:30:21 dgp Exp $
#
# Copyright (c) 1991-1993 The Regents of the University of California.
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
@@ -171,10 +171,12 @@ proc unknown args {
set cmd [lindex $args 0]
if {[regexp "^:*namespace\[ \t\n\]+inscope" $cmd] && [llength $cmd] == 4} {
+ #return -code error "You need an {expand}"
set arglist [lrange $args 1 end]
set ret [catch {uplevel 1 ::$cmd $arglist} result opts]
dict unset opts -errorinfo
- return -options $opts $ret
+ dict incr opts -level
+ return -options $opts $result
}
set name [lindex $args 0]