[Gimp-developer] changes in script-fu in 2.3.14
Alexander Rabtchevich
alexander.v.rabtchevich at iaph.bas-net.by
Wed Jan 31 04:21:00 PST 2007
I've managed to make my old script working. The problem I got was a
misunderstanding of scheme syntaxes as it wasn't expressively shown.
I saw examples like
(let ((x 1)
(y 2)
(z 3))
(list x y z))
at
http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-7.html#node_chap_5
So I thought the first parenthesis after let had intension to enclose
_several_ assignments in one let operator. All the samples there had the
structure with more than one assignment, so I tried:
(let (x 1)
...
)
and it didn't work. After some thoughts I understood that one pare of
parenthesis is used all the time to enclose the assignment part of the
let operator regardless to the number of assignments.
So, maybe it is too lame, but If I saw in the transition guide something
like this:
(let ((x 1))
(set! x (+ x 4))
)
and
(let ((x 1)
(y 2))
(set! x (+ x y))
)
it would save me a lot of time.
--
With respect
Alexander Rabtchevich
More information about the Gimp-developer
mailing list