[Pharo-project] is there a way to know whether an object is registered to an announcer?

Stéphane Ducasse stephane.ducasse at inria.fr
Sun Apr 24 12:07:07 CEST 2011


On Apr 24, 2011, at 11:54 AM, Igor Stasenko wrote:

> On 24 April 2011 12:08, Stéphane Ducasse <stephane.ducasse at inria.fr> wrote:
>> of course if the method would have been commented like that I would not have asked.
>> So I'm doing a pass on the class now and adding comments :(
>> 
>> unsubscribe: anObject
>>        "Unsubscribe all occurrences of the subscriber anObject"
>> 
> "Unsubscribe all subscriptions of anObject from receiver"
> 
>>        registry removeSubscriber: anObject
>> 
>> 
>> 
> Hmm.. isn't that was obvious?

No idea. Nothing is obvious!!! Comments are there to remove the obvious assumptions.


Stef

> 
> I mean, what behavior you found less surprising? Removing single
> subscription per call? Which one? In what order?
> 
> 
> -- 
> Best regards,
> Igor Stasenko AKA sig.
> 




More information about the Pharo-project mailing list