> alex my question was more naive and probably it shows that I do not know how 
> the announce protocol should be implemented
> but why do you have to record them?

The purpose of an announcer is to dispatch events. Callbacks are registered in 
an announcer, and an announcer receives and dispatch events to the callbacks.
In my enh, each unit test (subclass of TestCase) has an announcer. Maybe this 
is not a good strategy. Having one global announcer for unit test may be more 
convenient in some situations. 

Something nice, is that if there is no callback registered, events are not 
emitted. This means that this should incur no overhead (even though I did not 
measured).

Cheers,
Alexandre



> 
>> 
>> Cheers,
>> Alexandre
>> -- 
>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>> Alexandre Bergel  http://www.bergel.eu
>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> 
> 
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to