swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using forEach:


From: Norberto Eiji Nawa(0.3.31)
Subject: Re: Using forEach:
Date: Tue, 07 Sep 1999 16:47:59 +0900

Darren> I saw this type of construct in an example that Benedikt used.
Darren> [availableList forEach: M(findClosestNeighbor: availableList)];
Darren> But, I am getting a parse error before ).  How can I send the list to 
the
Darren> group of agents and instruct them to execute the command?

I have never tried this before with forEach, but assuming that the
syntax is similar to methods like createActionTo/createActionForEach,
I guess:

[availableList forEach: M(findClosestNeighbor:) : (id) availableList)];

may work.

Hope it helps,

Eiji

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]