View · Index
No registered users in community rubick
in last 10 minutes

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. this reference really helped me understand how namespaces work.


namespace eval mypackage {}

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

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


DaveB, Bart