[Pharo-dev] Announcer problem :)

Stéphane Ducasse stephane.ducasse at inria.fr
Sun Aug 4 10:16:54 EDT 2013


addDependent: anObject

	self announcer 
		on: MorphChanged
		do: [ :ann | anObject update: ann selector ].
		
	self announcer 
		on: MorphChangedWithArguments
		do: [ :ann | anObject update: ann selector with: ann arguments ].
			
	^ anObject

is an example of the problem because addDependent: was holding also weakly its dependent and now
we cannot use weak with blocks.

Stef



More information about the Pharo-dev mailing list