Forum OpenACS Q&A: tcl procs/API

Collapse
Posted by David Lee on
I'm looking at the API of the packages, and there's a lot of procedures like template::insert-name. I'm trying to understand, what does the "::" mean? Is the entire thing the name of a procedure, with the "::" just for decoration?
Collapse
2: Re: tcl procs/API (response to 1)
Posted by Claudio Pasolini on
The "::" is a separator used to fully qualify a command or variable within a namespace, much like a "/" within a file path.

See http://www.tcl.tk/man/tcl8.3/TclCmd/namespace.htm for more.

Collapse
3: Re: Re: tcl procs/API (response to 2)
Posted by David Lee on
so a namespace is basically just like a class in java, right? or a structure in C?