Issue created: http://code.google.com/p/pharo/issues/detail?id=5652

1.4 #14438

When loading a class, I would expect a single ClassAdded announcement.
Instead, we get a ClassAdded announcement, and then a
ClassModifiedClassDefinition for the class (I think when the category is
set), and then a ClassModifiedClassDefinition for the metaclass, but only if
there are class-side instance variables.

1. Subscribe for class definition change announcements e.g. "SystemAnnouncer
current on: ClassModifiedClassDefinition send: #classModified: to: self
new."
2. Subscribe for class added announcements e.g. "SystemAnnouncer current on:
ClassModifiedClassDefinition send: #classAdded: to: self new."
3. Load a package with MC that contains a class with a class-side instance
variable and an instance-side instance variable

You will see that your handler from #1 gets called twice and #2 once.

--
View this message in context: 
http://forum.world.st/System-announcements-and-MC-tp4577351p4577660.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

Reply via email to