On Tue, 2 Nov 1999, Thomas McKay wrote:
Nope, you need to use "namespace eval {...}"
Try this.
% namespace eval foo {
variable x
set x 12
}
% set foo::x
12
You can create a namespace like this "namespace eval foo {}".
If you run into problems, please check to see if you code
works in Tc
Should the following work?
namespace foo {
variable x
set x 12
proc y { a } {
puts $y
}
}
I get an unrecognized arg foo, should be eval, etc. Looking at the code it
sure seems like this won't work.
How do I create a namespace then?
---
Thomas McKay
Project Leader
Microcosm Technologies,