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 <[EMAIL PROTECTED]> 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

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to