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 Massimo Manghi <ma...@unipr.it> on 2011/02/08 01:58:52 UTC

rivet-namespace branch ready

I committed the changes in branch rivet-namespace. The code in this branch
basically introduces the namespace and package Rivet where commands have been
moved into. Package Rivet no longer refers specifically to the commands in
rivetlib.so but to the whole commands set in Rivet. 

Commands in rivetlib.so (they could be accessed by requiring package ::Rivet)
are now provided by package RivetLib. The package RivetLib is loaded in
Rivet_PerInterpInit though, therefore it appears to be part of the core in its
own right.

The command 'package require Rivet' returns now 1.2, which should be useful to
check which Rivet scripting level a script is running in.

Old scripts compatibility should be assured by adding in the initialization
the test

if {[package present Rivet] >= 1.2} {
    namespace import ::Rivet::*
}
	
I would much appreciate if someone could get bothered compiling and testing
the code in this branch. Thanks

-- Massimo


---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org