Home
The Toolkit for Online Communities
15259 Community Members, 0 members online, 2169 visitors today
Log In Register

Using Tcl Namespaces

OpenACS Home : rubick : Using Tcl Namespaces
Search · 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.

http://www.tcl.tk/man/tcl8.4/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