On Tue, Jun 03, 2003 at 10:54:25AM +0300, Shlomi Fish <[EMAIL PROTECTED]> wrote:
> >     gimp_pencil($layer, 4, @positions );
> gimp_pencil($layer, 4, [EMAIL PROTECTED]);

To add, arrays are always passed _into_ the gimp as references [...].
Functions returning a single array return a list, e.g.

   my @images = Gimp->list_images; # or so, foggy

And functions returning an array and something else return an arrayref.
There is no general rule, but if you do this:

   Gimp::set_trace(-1);

(you can pass in flags like TRACE_CALL etc.. instead of -1, see perldoc
Gimp), you will see what, exactly, will be passed to the pdb function.
That's very handy when debugging scripts.

-- 
      -----==-                                             |
      ----==-- _                                           |
      ---==---(_)__  __ ____  __       Marc Lehmann      +--
      --==---/ / _ \/ // /\ \/ /       [EMAIL PROTECTED]      |e|
      -=====/_/_//_/\_,_/ /_/\_\       XX11-RIPE         --+
    The choice of a GNU generation                       |
                                                         |
_______________________________________________
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer

Reply via email to