Re: Quoted substitution
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Quoted substitution

From: Ian Bell <ruffrecords@yahoo.com>
Date: Mon Dec 19 2005 - 15:53:59 CET

Bryan Oakley wrote:

> Ian Bell wrote:
>> Yes that works, but strangely if you :
>>
>> set $a 44
>> 44
>
> The above is not creating a variable named '$a'. It is doing
> substitution on $a before set is called. Thus, if the variable 'a'
> contains "foo", 'set $a "something"' is synonymous with 'set foo
> "something"'
>

Quite right. I think I finally have my head around this now.

Ian
Received on Fri Dec 23 19:02:10 2005