On May 27, 2013, at 11:44 AM, Henrik Johansen wrote:
On May 25, 2013, at 1:11 PM, Stéphane Ducasse wrote:
Hi guys
why there is no variant to on:send:to: "SystemAnnouncer uniqueInstance on: AddedLog send: #foo to: self. " that pass also the announcement?
Just because it is better to use on:do;?
Stef
Huh? It should work do do SystemAnnouncer uniqueInstance on: AddedLog send: #foo: to: self
and get the announcement as argumentâ¦
or #foo:bar: to get the announcer as well as the announcement.
This is one of the reasons cull: is cool! ;)
Cheers, Henry
Speaking of SystemAnnouncer⦠In the latest dev image I've got: SystemAnnouncer uniqueInstance numberOfSubscriptions 1327 Most of which are weak subscriptions for RecentMessageList. RecentMessageList class >> cleanUp self allInstancesDo: [:rml| rml initialize]. is clearly wrong, as initialize registers subscriptions for the announcements (thus introducing duplicates), done every time you shut down the image⦠maybe it should do self resetUniqueInstance instead? Cheers, Henry