swarm-support
[Top][All Lists]
Advanced

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

Re: [Q] createAction with multiple arguments, dynamic scheduling


From: donalson
Subject: Re: [Q] createAction with multiple arguments, dynamic scheduling
Date: Mon, 05 Jul 1999 05:38:48 -0700

I think your problem stems from (id) price vs. (float *) price.  I believe you
must make them the same type in all the function calls.  Then you can recast
then within the procedure if you want.  It may be as simple as:
[modelScheduleBidsOffers at: time createActionForEach: brokerList
                           message: M(bidFrom:) : (id)ident : (float *) price];

Cheers,

   Doug

Norberto Eiji Nawa wrote:

> Dear all,
>
> I am having trouble passing _more than one argument_ with a message to a
> list of objects, using the methods described below:
>
> --
> - broadcastBidFrom: (int) ident WithPrice: (float *) price At: (int) time {
>
>
>   return self;
> }
>
> - bidFrom: (id)ident : (float *)price  {
>
>   // processing...
>
>   return self;
> }
> --
>
> I get no errors in compilation time, but when I -bidFrom is called in
> run time I get the following message:
>
> --
> *** event raised for error: InvalidArgument
> *** function: _i_Object_s__doesNotRecognize_(), file: DefObject.m, line: 635
> BuySell does not recognize bidFrom:*** execution terminating due to error
> --
>
> When I set -bidFrom to receive only a _single_ argument (int or
> float*), it runs fine.
>
> Any ideas?
>
> Thanks a lot,
>
> 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.

--
*********************************************************************
* Doug Donalson                 Office: (805) 893-2962
* Ecology, Evolution,           Home:   (805) 961-4447
* and Marine Biology            email address@hidden
* UC Santa Barbara
* Santa Barbara Ca. 93106
*********************************************************************
*
*   The most exciting phrase to hear in science, the one that
*   heralds new discoveries, is not "EUREKA" (I have found it) but
*   "That's funny ...?"
*
*       Isaac Asimov
*
*********************************************************************



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