|
List Info
Thread: Easiest way to curry unevaluated args?
|
|
| Easiest way to curry unevaluated args? |

|
2006-02-15 05:17:31 |
|
Hi Devin,
On 2/15/06, devinmullins <twifkak comcast.net> wrote:
> Contrived example:
>
> foompa := method( // takes two args
> for(???, 1, 10, ???)
> )
Is usually implemented as,
foompa := method(
iName := call message argAt(0) name
body := call message argAt(1)
for (i, 1, 10,
call sender setSlot(iName, i)
call sender doMessage(body)
)
)
foompa(i,
writeln(i)
)
----
1
2
3
4
5
6
7
8
9
10
I'm not sure if this is the answer you were looking for. Sorry, I
haven't taken the time to understand the second part yet.
Jonathan.
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|