Re: Some questions about currying

2003-10-30 Thread Joe Gottman
- Original Message - From: Luke Palmer [EMAIL PROTECTED] Joe Gottman writes: 3) Currying binds a function parameter to a value? Is there any way to bind a function parameter to a variable? Consider the following code: sub printNum(int $x) {print $x\n;} my $foo = 0;

Re: Some questions about currying

2003-10-30 Thread Jonathan Scott Duff
On Wed, Oct 29, 2003 at 08:32:40PM -0500, Joe Gottman wrote: I just reread the section of A6 about currying, and I have several questions about it. Your questions have caused me to skim over A6 and discover that there are lots of details I've forgotten. Hopefully forgetfulness won't be a

Some questions about currying

2003-10-29 Thread Joe Gottman
I just reread the section of A6 about currying, and I have several questions about it. 1) Suppose I have a function like the following: sub foo($param, @param) {...} where the parameter names differ only by their sigils. Is it legal for me to type

Re: Some questions about currying

2003-10-29 Thread Luke Palmer
Joe Gottman writes: I just reread the section of A6 about currying, and I have several questions about it. 1) Suppose I have a function like the following: sub foo($param, @param) {...} where the parameter names differ only by their sigils. Is it legal for me