> If I've a bunch of objects, I can do a call the them with a 
> handler, correct? And the ones with the handler will respond/do it?

Yes. call #handler, [object1, object2]

It has the advantage that it won't throw an error if one of the objects
doesn't have the handler. I've seen code where all the calls are to a
list of objects, even if there's only one object. E.g.:

call #handler [anObject]

In that code, you couldn't be sure at runtime if the object you were
calling had the handler, so it had the effect of "see if the current
object has this handler, and if it does, call it."

Cordially,

Kerry Thompson

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to