[squeak-dev] Re: How does runLocalStepMethodsIn: aWorld work?

marcel.taeumel Marcel.Taeumel at hpi.de
Fri Nov 27 11:25:19 UTC 2015


Hi Stephan,

I suspect WorldState >> #stopStepping:  or WorldState >>
#stopStepping:selector:. If the step message calls something like "self
stopStepping", then you do not want another step call but an immediate stop
of the stepping.

WorldState >> stopStepping: aMorph
	"Remove the given morph from the step list."
	lastStepMessage ifNotNil:[
		(lastStepMessage receiver == aMorph) ifTrue:[lastStepMessage := nil]].
	stepList removeAll: (stepList select:[:stepMsg| stepMsg receiver ==
aMorph]).

Hence, there is no suspicious "become" but only a nasty side-effect. :)

Best,
Marcel



--
View this message in context: http://forum.world.st/How-does-runLocalStepMethodsIn-aWorld-work-tp4863844p4863855.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.


More information about the Squeak-dev mailing list