Re: Variable naming
- From: "Tim E" <thedcm@xxxxxxxxx>
- Date: 27 Sep 2006 14:14:29 -0700
% set test/blah 5
5
% puts ${test/blah}
5
Dario D. wrote:
Hello all,
Is slash (/) allowed in variable names? I'm reading a tutorial on the
NS2 simulator, and it appears to be using slashes in class names:
set tcp [new Agent/TCP]
I tried to run the following example through tclsh, but as you can see
it didn't work out well:
% set test/blah 5
5
% puts $test/blah
can't read "test": no such variable
--
Dario D.
.
- Prev by Date: Re: Variable naming
- Next by Date: Re: Variable naming
- Previous by thread: Re: Variable naming
- Next by thread: Re: Variable naming
- Index(es):
Relevant Pages
|