swarm-support
[Top][All Lists]
Advanced

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

Re: Error message


From: Paul E Johnson
Subject: Re: Error message
Date: Thu, 24 Aug 2000 20:04:33 -0500

Doug Donalson wrote:
> 
> Below is the error message I get and a back trace from GDB when I schedule
> the following action:
> 
>          [subSchedId at: subSchedTime createActionTo: self message:
>          M(processEvent:): 3 : shortestCompMussel1 : shortestCompMussel2 ];

Dammit, Jim, I'm just a country doctor, but it looks like you've got 1)
the wrong number of : in the parentheses, or the method name is not
complete, and one of  your arguments is an int, not an id. 

I don't know the full name of your method "processEvent:" but if it were
-processEvent: (int) x With: x And: y

THen I think the second line above would look like:
 M(processEvent:With:And:): 3 : shortestCompMussel1 :
shortestCompMussel2 ];
        ^^^                       ^^^
         full method name here   colon separated argument list here

However, as I recall, you can't pass an int through with the
createActionTo: method, only ids can be there.  Since are frowning on
the casting of ints to ids, you should create an integer wrapper and
rewrite your method so all its arguments are ids.  I think we put that
in the user guide.

-- 
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ukans.edu/~pauljohn
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66045                FAX: (785) 864-5700

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