swarm-support
[Top][All Lists]
Advanced

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

Re: World does not recognize allocIVars:


From: Ken Gosier
Subject: Re: World does not recognize allocIVars:
Date: Wed, 29 Nov 2000 07:51:57 -0500

"Marcus G. Daniels" wrote:
> 
> How about trimming down the code and making a simple test-case you can
> post?
> 


OK: So while doing this, I noticed the following: The createBegin for
World looks like:


+ createBegin: (id)inputZone
{
   World *obj;
   id params;

   obj = [super createBegin: inputZone];

   // initialize myParams object

   params = [Params create: inputZone];
   [params init];
   obj->myParams = params;

   return obj;
}


I noticed that before, I had

params = [Params create: self];

for the params line. That seemed strange, since 'self' doesn't really
exist yet, in some sense. Changed this to inputZone, and voila! the
error disappers.

Though: Perhaps I want to move the myParams initialization to createEnd,
since it might be better to have myParams exist within the World, rather
than just being in the same zone as the world. They both exist for the
whole span of the run, though, so maybe not a big deal...

Anyway, many thanks for the help!!

Ken Gosier
address@hidden
address@hidden

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