handling method/classes updartes
Hi, is there a way to subscribe directly to a method/class, so I san know when it updates/is removed and so on? Because it looks like a pain to subscribe to system announcer and check if the method changed is the one I need. Uko
Hi Uko, not that I know of. It's true that to do that properly, you need to listen to a few announcements but I'd say that the code to filter the relevant announcement isn't very complex. Thierry ________________________________________ De : Pharo-dev [pharo-dev-bounces@lists.pharo.org] de la part de Yuriy Tymchuk [yuriy.tymchuk@me.com] Envoyé : jeudi 10 juillet 2014 19:38 à : Pharo Development List Objet : [Pharo-dev] handling method/classes updartes Hi, is there a way to subscribe directly to a method/class, so I san know when it updates/is removed and so on? Because it looks like a pain to subscribe to system announcer and check if the method changed is the one I need. Uko
What you should realize is that when we introduce the SystemAnnouncer ancestor with Roel Wuyts, there way no such a thing: a system that to whim you register and notify about changes. So in VW you had to go and find all the places and patch them to get you notified. So to me this is a huge enhancements to support the creation of great tool. Now working with a real system is complex because a class can recategorized, a method rename, recatogorized, removed.... and there is magical solution - at least that I know Stef On 10/7/14 19:38, Yuriy Tymchuk wrote:
Hi,
is there a way to subscribe directly to a method/class, so I san know when it updates/is removed and so on? Because it looks like a pain to subscribe to system announcer and check if the method changed is the one I need.
Uko
Itâs fine. I was asking because I am creating entities that should stay in sync with certain methods per entity. So I wandered if an entity could register to that method. Now if I need to register to SystemAnnouncer, I have either to register each entity separately and check if announcement is regarding the method Iâm interested in. Or I can create the manager of entities which will listen to announcer and tell entities what to do. I have to figure out which approach is better. Uko On 13 Jul 2014, at 18:10, stepharo <stepharo@free.fr> wrote:
What you should realize is that when we introduce the SystemAnnouncer ancestor with Roel Wuyts, there way no such a thing: a system that to whim you register and notify about changes. So in VW you had to go and find all the places and patch them to get you notified. So to me this is a huge enhancements to support the creation of great tool. Now working with a real system is complex because a class can recategorized, a method rename, recatogorized, removed.... and there is magical solution - at least that I know
Stef
On 10/7/14 19:38, Yuriy Tymchuk wrote:
Hi,
is there a way to subscribe directly to a method/class, so I san know when it updates/is removed and so on? Because it looks like a pain to subscribe to system announcer and check if the method changed is the one I need.
Uko
participants (3)
-
GOUBIER Thierry -
stepharo -
Yuriy Tymchuk