|
![](/i/fill.gif) |
On Sun, 03 Sep 2000 10:06:17 -0500, Chris Huff wrote:
>In article <slr### [at] teal h hjp at>,
>hjp### [at] SiKitu wsr ac at (Peter J. Holzer) wrote:
>> Oh. I didn't notice that. Cool! I always thought that redeclaring a
>> variable at every assignment is somewhat inelegant.
>
>That shortcut still redeclares the variable, it is just a typing
>shortcut,
Yes. But as far as "elegance" goes, I am more concerned about my POV
Scripts than what POV internally does with them.
% a = a + 1
really looks much more like an ordinary assignment than
#local a = a + 1
>but I agree that it is inelegant to redeclare a variable just
>to assign to it. That is the exact reason I added a #set keyword in my
>patch, so you can use a separate keyword for modifying variables.
Saw it just after my reply. #set somewhat reminds me of BASIC or some
shells, but that's ok.
hp
--
_ | Peter J. Holzer | Nicht an Tueren mangelt es,
|_|_) | Sysadmin WSR | sondern an der Einrichtung (aka Content).
| | | hjp### [at] wsr ac at | -- Ale### [at] univie ac at
__/ | http://www.hjp.at/ | zum Thema Portale in at.linux
Post a reply to this message
|
![](/i/fill.gif) |