Difference between $foo and [set foo]
- From: "Hans Herrmann" <lieber@xxxxxxxxxxxxxxx>
- Date: Tue, 7 Jun 2005 20:53:50 +0200
Hi,
last time you helped me with a problem:
###################
set a 1,0
set b 2,0
foreach pos {a b} {
regsub -all {,} [set $pos] {.} [set pos]
}
######################
Why i must not do "$$pos" or "[eval puts $pos]" and for the seconde
substitution "$pos". I'm not a specialist in programming, I'm a
"hobby-tcler" but I want to know the difference in simple words.
Thanks
Hans
.
- Follow-Ups:
- Re: Difference between $foo and [set foo]
- From: Donal K. Fellows
- Re: Difference between $foo and [set foo]
- From: Christopher Nelson
- Re: Difference between $foo and [set foo]
- From: Kaitzschu
- Re: Difference between $foo and [set foo]
- Prev by Date: ANNOUNCE: Tcl/Tk 8.5a3 Release
- Next by Date: Re: join enhancements
- Previous by thread: ANNOUNCE: Tcl/Tk 8.5a3 Release
- Next by thread: Re: Difference between $foo and [set foo]
- Index(es):
Relevant Pages
|