[Gimp-user] Gimp 2.3.18 and script-fu errors

Pere Pujal i Carabantes pere at fornol.no-ip.org
Thu Aug 23 10:14:56 PDT 2007


El dj 23 de 08 del 2007 a les 09:49 +0100, en/na David Woodfall va
escriure:
> On (22:49 22/08/07), Pere Pujal i Carabantes <pere at fornol.no-ip.org> put forth the proposition:
> > El dc 22 de 08 del 2007 a les 12:43 +0100, en/na David Woodfall va
> > escriure:

> > > Error: Set!: Unbound variable: new
> > > 

> >   (set! new (car(gimp-layer-copy layer 1))) ; Add an alpha channel
> > by
> >   (define new (car(gimp-layer-copy layer 1))) ; Add an alpha channel
> > 
> > 
> 
> Works thanks. Is set!/define the only difference with the new script
> engine? I edited a few more and all seems well.
> 

I am not sure, I am just learning.
The main difference is the interpreter Tinyscheme vs SIOD, each one has
its own interpretation of the standard.

About set!, it serves to put a value to a variable, not to declare it.
Say open a gimp script-fu console and type the following:

(set! x 1) ---> Error: set!: unbound variable: x 

(define x) ---> x
(set! x 1) ---> 1

As you see, set! works once the variable is declared.


Yours
Pere



More information about the Gimp-user mailing list