On 18.11.2011 05:32, Sean P. DeNigris wrote:
Igor Stasenko wrote:
virtually nowhere :)
Should the non-weak version be removed and replaced by the weak version (renamed to remove the weak specification)? Or some other consolidation...
-- View this message in context: http://forum.world.st/Unsubscribing-for-Announcements-tp3220751p4082112.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
No. It is valuable whenever you need to deterministically unsubscribe a subscriber at some point. If using weak subscribers, bugs related to not doing so can be hard to track down. (mainly when that point somewhat coincides to when the object also loses its last reference) Second, if you do need to unsubscribe them at some set point in the programs execution, also having it registered for weak cleanup only introduces additional overhead. Third, for the moment at least, when:do: anActionBlock subscription does not work weakly, you are constrained to when:send:to. Cheers, Henry