[Gimp-user] Script-Fu Exceptions and errors

2009-11-24 Thread Thomas DuBuisson
Hello list, I am planning on evolving image transformations using an AST of the script-fu langauge and generating random (but syntatically correct) scripts. I would like to avoid programming in hundreds of corner cases into the system and thus have the following questions: 1) Script-fu throws

Re: [Gimp-user] Script-Fu Exceptions and errors

2009-11-24 Thread Thomas DuBuisson
))' failed On Tue, Nov 24, 2009 at 10:05 AM, Thomas DuBuisson thomas.dubuis...@gmail.com wrote: Hello list, I am planning on evolving image transformations using an AST of the script-fu langauge and generating random (but syntatically correct) scripts.  I would like to avoid programming

Re: [Gimp-user] Script-Fu Exceptions and errors

2009-11-24 Thread Thomas DuBuisson
then I'll have to fix these corner cases. Perhaps I'll make some patches for the function documentation if people are interested. Thomas On Tue, Nov 24, 2009 at 11:34 AM, Thomas DuBuisson thomas.dubuis...@gmail.com wrote: Update: 1) The question regarding exceptions remains - there are too many

Re: [Gimp-user] Script-Fu Exceptions and errors

2009-11-25 Thread Thomas DuBuisson
I don't like how you nest the various let*-statements. That makes the code hard to track. It would be better if you have some dummy variable declarations in your outer let*-statement and then use set! to redefine the values. Also note that the use of 25 for the mode is not nice, you really