[Gimp-developer] Please help with a syntax error.

Robert Krawitz rlk at alum.mit.edu
Wed Jun 3 16:52:06 PDT 2009


   From: "Brent Hawkins" <forums at gimpusers.com>
   Date: Thu,  4 Jun 2009 01:46:20 +0200 (CEST)

   When i try to run this script in the console, it says "Error: Bad
   syntax of binding spec in let* : (var-one 1)"

   I already wrote a much bigger script using information from an old
   tutorial but without trying out this simple part of it first and
   now that doesn't work, except when you replace the variables with
   values.

   Using gimp 2.6.6 and Ubuntu 9.04

   (let* 
	   (var-one 1)
	   (var-two 2)
	   (var-three 3)
   )

The syntax of let* is

(let* bindings &body body)

The bindings are a single argument, so they have to be a list:

(let* ((var-one 1)
       (var-two 2))
  ...body...)

-- 
Robert Krawitz                                     <rlk at alum.mit.edu>

Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom -- mail lpf at uunet.uu.net
Project lead for Gutenprint   --    http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton


More information about the Gimp-developer mailing list