I'm trying to write a script that contains a loop, but am having
difficulties with the looping construct. When running the script, I
get the following error: "Error: eval: unbound variable: while"
Things I've tried so far:
- I've created a new script with just a loop to try to isolate the
issue.
- I have downloaded and installed the newest GIMP (2.4.6), running on
Windows XP.
- web search: I did find a reference on the web (http://www.ve3syb.ca/
wiki/doku.php?id=software:sf:updating-scripts) that 'while' loops
should now be 'do' loops, since the incor****ation of TinyScheme.
However, I get the same error when trying to use a do loop. However,
scripts I've downloaded use while, so perhaps this is an obsolete
comment?
- I downloaded the latest version of the FX Foundry scripts, to see if
they run. Many of these have while loops in them. I've tried to run
several, and get various errors -- but none of them related to the
while loop. Is it possible something is not installed or configured
correctly on my system?
Test script follows:
(define (script-fu-test-while)
( let* (
(i 0)
)
(while (< i 10)
(set! i (+ i 1))
)
))
Any suggestions are greatly appreciated!
Staci


|