On Tue, 30 Jan 2007 16:06:00 +0200, Alexander Rabtchevich <[EMAIL PROTECTED]> 
wrote:
> 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
effort.

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.

-Raphaël
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Reply via email to