swarm-support
[Top][All Lists]
Advanced

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

Re: Swarm coding question: M( x ) only accepts id returns?


From: Phil Knight
Subject: Re: Swarm coding question: M( x ) only accepts id returns?
Date: Tue, 4 Nov 1997 19:16:45 +0000

In article <Pine.LNX.3.95.971103165954.685A-
address@hidden>, Paul Johnson wrote:
>
>I have a method that returns an integer and takes 4 arguments.
>I'm trying to make the SWARM modelactions regime function, so I
>try:
>
>[modelActions createActionForEach: voterList    message: M(report: 1 W:1
>Y: 50 Z: 50)];
>
>This causes the compiler to fail.  Error:
>

Without trying this out for myself, I think the correct syntax should be
of the form:

[modelActions createActionForEach: voterList message: M(report:::) : 1 :
1: 50 ];

BUT it appears you can only have up to three additional arguments - see
declarations in Activity.h

Hope this helps
-- 
Phil Knight

                  ==================================
   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]