You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by mx...@apache.org on 2011/04/07 16:40:09 UTC
svn commit: r1089897 - in /tcl/rivet/branches/rivet-namespace: ChangeLog
rivet/init.tcl rivet/rivet-tcl/incr0.tcl rivet/rivet-tcl/tclIndex
Author: mxmanghi
Date: Thu Apr 7 14:40:09 2011
New Revision: 1089897
URL: http://svn.apache.org/viewvc?rev=1089897&view=rev
Log:
2011-06-07 Massimo Manghi <mx...@apache.org>
* rivet/init.tcl: because of bug #3216070 of Tcl we cannot preload rivetlib, so it doesn't make
sense to import the rivet namespace, because we cannot have all the command set loaded in and
an import has to be done for them in the application scripts
* rivet/rivet-tcl/incr0.tcl: Tcl8.5 provides identical functionalities, so this command is
now aliased in the interpreter by the native incr command.
* rivet/rivet-tcl/tclIndex: recreated
Removed:
tcl/rivet/branches/rivet-namespace/rivet/rivet-tcl/incr0.tcl
Modified:
tcl/rivet/branches/rivet-namespace/ChangeLog
tcl/rivet/branches/rivet-namespace/rivet/init.tcl
tcl/rivet/branches/rivet-namespace/rivet/rivet-tcl/tclIndex
Modified: tcl/rivet/branches/rivet-namespace/ChangeLog
URL: http://svn.apache.org/viewvc/tcl/rivet/branches/rivet-namespace/ChangeLog?rev=1089897&r1=1089896&r2=1089897&view=diff
==============================================================================
--- tcl/rivet/branches/rivet-namespace/ChangeLog (original)
+++ tcl/rivet/branches/rivet-namespace/ChangeLog Thu Apr 7 14:40:09 2011
@@ -1,3 +1,11 @@
+2011-06-07 Massimo Manghi <mx...@apache.org>
+ * rivet/init.tcl: because of bug #3216070 of Tcl we cannot preload rivetlib, so it doesn't make
+ sense to import the rivet namespace, because we cannot have all the command set loaded in and
+ an import has to be done for them in the application scripts
+ * rivet/rivet-tcl/incr0.tcl: Tcl8.5 provides identical functionalities, so this command is
+ now aliased in the interpreter by the native incr command.
+ * rivet/rivet-tcl/tclIndex: recreated
+
2011-04-06 Massimo Manghi <mx...@apache.org>
* configure.ac: Added doc/convert_examples.tcl to files created from its .in template
Modified: tcl/rivet/branches/rivet-namespace/rivet/init.tcl
URL: http://svn.apache.org/viewvc/tcl/rivet/branches/rivet-namespace/rivet/init.tcl?rev=1089897&r1=1089896&r2=1089897&view=diff
==============================================================================
--- tcl/rivet/branches/rivet-namespace/rivet/init.tcl (original)
+++ tcl/rivet/branches/rivet-namespace/rivet/init.tcl Thu Apr 7 14:40:09 2011
@@ -143,7 +143,7 @@ namespace eval ::Rivet {
## Likewise we have also to add to auto_path the directory containing
## this script since it holds the pkgIndex.tcl file for package Rivet.
- # set auto_path [linsert $auto_path 0 [file dirname [info script]]]
+ set auto_path [linsert $auto_path 0 [file dirname [info script]]]
## This will allow users to create proc libraries and tclIndex files
## in the local directory that can be autoloaded.
@@ -170,4 +170,9 @@ interp alias {} ::rivet::incr0 {} incr
## Some commands (namely lassign) replace the native lassign command
## so we have to use the -force switch
-namespace import -force ::rivet::*
+# Do we actually want to import everything? Since we cannot safely
+# require package rivetlib (see bug #3216070) those commands have
+# to be loaded separately and in case a 'namespace import ::rivet::*'
+# reissued.
+
+# namespace import -force ::rivet::*
Modified: tcl/rivet/branches/rivet-namespace/rivet/rivet-tcl/tclIndex
URL: http://svn.apache.org/viewvc/tcl/rivet/branches/rivet-namespace/rivet/rivet-tcl/tclIndex?rev=1089897&r1=1089896&r2=1089897&view=diff
==============================================================================
--- tcl/rivet/branches/rivet-namespace/rivet/rivet-tcl/tclIndex (original)
+++ tcl/rivet/branches/rivet-namespace/rivet/rivet-tcl/tclIndex Thu Apr 7 14:40:09 2011
@@ -6,18 +6,18 @@
# element name is the name of a command and the value is
# a script that loads the command.
-set auto_index(::rivet::random) [list source [file join $dir random.tcl]]
+set auto_index(::rivet::parray) [list source [file join $dir parray.tcl]]
set auto_index(::rivet::import_keyvalue_pairs) [list source [file join $dir import_keyvalue_pairs.tcl]]
-set auto_index(::rivet::read_file) [list source [file join $dir read_file.tcl]]
+set auto_index(::rivet::lassign) [list source [file join $dir lassign.tcl]]
+set auto_index(::rivet::debug) [list source [file join $dir debug.tcl]]
set auto_index(::rivet::rivet_command_document) [list source [file join $dir rivet_command_document.tcl]]
+set auto_index(::rivet::read_file) [list source [file join $dir read_file.tcl]]
set auto_index(::rivet::html) [list source [file join $dir html.tcl]]
-set auto_index(::rivet::lassign) [list source [file join $dir lassign.tcl]]
-set auto_index(::rivet::incr0) [list source [file join $dir incr0.tcl]]
set auto_index(::rivet::load_cookies) [list source [file join $dir load_cookies.tcl]]
-set auto_index(::rivet::parray) [list source [file join $dir parray.tcl]]
-set auto_index(::rivet::lmatch) [list source [file join $dir lmatch.tcl]]
-set auto_index(::rivet::lempty) [list source [file join $dir lempty.tcl]]
-set auto_index(::rivet::load_response) [list source [file join $dir load_response.tcl]]
-set auto_index(::rivet::debug) [list source [file join $dir debug.tcl]]
+set auto_index(::rivet::import_switch_args) [list source [file join $dir import_switch_args.tcl]]
set auto_index(::rivet::wrap) [list source [file join $dir wrap.tcl]]
set auto_index(::rivet::wrapline) [list source [file join $dir wrap.tcl]]
+set auto_index(::rivet::load_response) [list source [file join $dir load_response.tcl]]
+set auto_index(::rivet::lmatch) [list source [file join $dir lmatch.tcl]]
+set auto_index(::rivet::random) [list source [file join $dir random.tcl]]
+set auto_index(::rivet::lempty) [list source [file join $dir lempty.tcl]]
---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-cvs-help@tcl.apache.org