On Tue, 30 Jan 2007 16:06:00 +0200, Alexander Rabtchevich <[EMAIL PROTECTED]>
> Some more thoughts on local variables in scheme from a newbie POV.
> Due to a parenthesis syntaxes of variable declaration area, if variable
> x is declared before variable y and y is declared before x is dropped, x
> remains active at least until y is dropped.
So what? Keep in mind that premature optimization is the worst ennemy
of the developer. Script-Fu was never designed to be especially efficient:
it was designed to get the job done with a minimum amount of developer
Also, does it make sense to worry about leaving a variable and its context
in memory for a little while when this variable only takes a few bytes and
the data that you are manipulating is several orders of magnitude larger?
Keeping an integer and its context on the stack means almost nothing in
comparison with the megabytes of image data that the script is processing.
Gimp-developer mailing list