I'm pretty much a newb, and I'm trying to set some variables in a namespace which use argv, and then to call them from a proc outside of the namespace, but I'm having trouble understanding how to do this. I'm trying to use some code like this (but clearly this is the wrong way to do it):
namespace eval Ns {
variable spec [lindex $argv 1]
}
proc p {} {
set spec "::Ns::spec"
}