[Gimp-user] what's with the auto-insert of run-mode as the first arg for script-fu methods?

2012-09-20 Thread paynekj
There's half an explanation in this e-mail chain: 
http://www.gimpusers.com/forums/gimp-developer/10891-run-mode-enums

But essentially, if you start your procedure name with script-fu- then the run 
mode is implicit and you shouldn't include it in any definitions.

The fact that it turns up in the procedure browser is confusing, but knowing 
when to ignore it is just one of those things to learn.


-- 
paynekj (via gimpusers.com)
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


[Gimp-user] procedure overloading in scheme / script-fu

2012-09-19 Thread paynekj
Can you point me to the scheme manual that talks about overloading please.

As you are talking about variable numbers of arguments, this article seems to 
explain how it works:
http://www.math.grin.edu/~stone/courses/scheme/readings/variable-arity.xhtml

And in your example, by replacing foo2 with foo you end up with a second 
definition of foo which replaces the first, and then calls itself recursively 
when used - hence your infinite loop.

-- 
paynekj (via gimpusers.com)
___
gimp-user-list mailing list
gimp-user-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-user-list


[Gimp-user] does number-string have format options?

2012-05-02 Thread paynekj
There is no official document for TinyScheme. The closest thing to it is the 
official R4RS or R5RS Scheme standard.

The R5RS document can be found at:
http://www.schemers.org/Documents/Standards/R5RS/r5rs.pdf

Not all features documented are supported by TinyScheme but its a good 
starting point to see the language syntax or some of the features supported. 
If other Scheme interpreters have many different definitions for things like 
string parsing they may not be following the Scheme standard, may be using 
custom sets of Scheme code, or be using some features from R6RS, or 
functions from the Scheme SRFI's.

Isn't it about time that an official document was written for Tiny-Fu? at 
least documenting which features are supported and where differences exist 
between Tiny-Fu and R5RS. 

I see it is on your To Do list: http://www.ve3syb.ca/software/tiny-fu/index.html


-- 
paynekj (via gimpusers.com)
___
gimp-user-list mailing list
gimp-user-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gimp-user-list


[Gimp-user] gimp sites that serves tutorials in small amounts

2012-04-24 Thread paynekj
can anyone recommend a gimp site that serves tutorials in small amounts and
in doses that stresses the fundamental skills, just like daily french
sites?
really lost for words. please do help me.
tanx

I'd try Meet the GIMP for video podcasts:  http://blog.meetthegimp.org/

-- 
paynekj (via gimpusers.com)
___
gimp-user-list mailing list
gimp-user-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gimp-user-list


[Gimp-user] Searchpath separator

2011-11-14 Thread paynekj
Script-fu question:

Is there an equivalent to DIR-SEPARATOR for search paths?

i.e. the return from (gimp-gimprc-query script-fu-path)

As the path separator is different on Windows and Linux (and who knows what on 
Mac)

Kevin

-- 
paynekj (via gimpusers.com)
___
gimp-user-list mailing list
gimp-user-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gimp-user-list