[Gimp-user] procedure overloading in scheme / script-fu
- From: paynekj <forums gimpusers com>
- To: gimp-user-list gnome org
- Cc: team gimpusers com
- Subject: [Gimp-user] procedure overloading in scheme / script-fu
- Date: Wed, 19 Sep 2012 15:39:03 +0200
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]