diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2008-08-06 19:23:10 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2008-08-06 19:23:10 (GMT) |
commit | 878b3777fceb1c6a339bd3bec9f0f5fd02a7d2d7 (patch) | |
tree | bd66df707f2fa113efa14329258cf88ea7a6d3f4 | |
parent | c290f50d94d557eda1ec276f0fd53e0879d281e8 (diff) | |
download | tcl-878b3777fceb1c6a339bd3bec9f0f5fd02a7d2d7.zip tcl-878b3777fceb1c6a339bd3bec9f0f5fd02a7d2d7.tar.gz tcl-878b3777fceb1c6a339bd3bec9f0f5fd02a7d2d7.tar.bz2 |
* library/init.tcl (::unknown): removed the [namespace inscope]
hack that was maintained for Itcl
*** POTENTIAL INCOMPATIBILITY *** for Itcl
Itcl users will need a new release with Itcl's [Patch 2040295], or
else load the tiny script in that patch by themselves (rewrite
::unknown). Note that it is a script-only patch.
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | library/init.tcl | 15 |
2 files changed, 13 insertions, 12 deletions
@@ -1,3 +1,13 @@ +2008-08-06 Miguel Sofer <msofer@users.sf.net> + + * library/init.tcl (::unknown): removed the [namespace inscope] + hack that was maintained for Itcl + + *** POTENTIAL INCOMPATIBILITY *** for Itcl + Itcl users will need a new release with Itcl's [Patch 2040295], or + else load the tiny script in that patch by themselves (rewrite + ::unknown). Note that it is a script-only patch. + 2008-08-05 Joe English <jenglish@users.sourceforge.net> * unix/tclUnixChan.c: Streamline async connect logic [Patch 1994512] diff --git a/library/init.tcl b/library/init.tcl index 3a3b105..ab5d858 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.107 2008/06/25 17:40:03 andreas_kupries Exp $ +# RCS: @(#) $Id: init.tcl,v 1.108 2008/08/06 19:23:13 msofer Exp $ # # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. @@ -241,19 +241,10 @@ proc unknown args { # If the command word has the form "namespace inscope ns cmd" # then concatenate its arguments onto the end and evaluate it. - set cmd [lindex $args 0] - if {[regexp "^:*namespace\[ \t\n\]+inscope" $cmd] && [llength $cmd] == 4} { - #return -code error "You need an {*}" - set arglist [lrange $args 1 end] - set ret [catch {uplevel 1 ::$cmd $arglist} result opts] - dict unset opts -errorinfo - dict incr opts -level - return -options $opts $result - } - catch {set savedErrorInfo $::errorInfo} catch {set savedErrorCode $::errorCode} - set name $cmd + + set name [lindex $args 0] if {![info exists auto_noload]} { # # Make sure we're not trying to load the same proc twice. |