[Newbies] Is there a way to broadcast messages to more than one
recipient?
Herbert König
herbertkoenig at gmx.net
Fri Dec 27 19:44:12 UTC 2013
Hi David,
short answer:
anArray do: [:each| each message].
One of the things to learn about Smalltalk is it's rich collection protocol.
The fact that I use do: might hint that I should reread the protocol of
collections, there maybe something more elegant :-))
Cheers
Herbert
Am 27.12.2013 20:15, schrieb David Holiday:
> As far as I can tell, messages have to be directed at a single
> recipient. Is this the case or, for example, is it possible to blast a
> message to every member of an Array at the same time?
>
>
> David Holiday
> -------------------------------------------------
> San Diego State University
> neuburge at rohan.sdsu.edu <mailto:neuburge at rohan.sdsu.edu>
>
>
>
>
>
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20131227/bba8afda/attachment.htm
More information about the Beginners
mailing list