swarm-support
[Top][All Lists]
Advanced

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

Yes, even more heatbug/Swarm programming style questions...


From: bleydorf
Subject: Yes, even more heatbug/Swarm programming style questions...
Date: Mon, 28 Jul 1997 12:42:22 -0400

(And there is sure to be more....)

All,
This is probably a bit of a "newbie" question, but (while going through
the heatbugs code) what is "M" in this statement:

[[heatbugModelSwarm getHeatbugList] forEach: M(setBugColor:) : (void *)
64];

I would assume that it is a array of all the bugs in a given run, but I
don't want to assume anything since I have to teach this to others on
Wednesday...[frown]  and is forEach a method or a label?  and how should
I interpete the rest of it?  Is "(void *) 64" the creation of the actual
"M" array? And later in buildActions it references M again, is this the
same M?  And in buildActions under many messages like this one:

[displyActions createActionTo: unhappyGraph message: M(step)];
Is this the same M?  If not where was this M initialized/declared?  And
is message a label or a method?

Thanks,
Brad.

PS.
As to the previous posts, is this right?
(Cap letter)(Lower)(Cap)(Lower)... 
(ie. HeatbugObserverSwarm) would be a type? (or class?)

(Lower)(Cap)(Lower)... 
(ie. heatbugObserverSwarm) would be an instance/object/swarm/agent?

(Lower)...   
(ie. colormap) would be a object that came with ObjectiveC?

(Lower)(Cap)(Lower)...(and its a action) 
(ie. addLast:) would be a method?

(Lower)...(and its a action) 
(ie. create: ) Would be an method defined in the Objective C libraries?

And what about Methods like: SetX: x Y: y  Is the method SetX: and Y:
the same method or two different ones?  Or is Y: a label?  If Y is a
label, isn't that unfair to Y, to make it a label to SetX:.....[grin]

Thanks....

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