Using Tcl Namespaces

Using Tcl Namespace

The main reason to use namespaces is to avoid namespace collision, where you have two variables called the same thing.

http://www.tcl.tk/man/tcl8.3/TclCmd/namespace.htm this reference really helped me understand how namespaces work.
http://mini.net/tcl/1489
http://www.collaboraid.biz/developer/package-developers-guide

namespace eval mypackage {}

Then create the procedures using their fully qualified name as such:

proc mypackage::get {} {}
proc mypackage::set {} {}

Acknowledgements

DaveB, Bart