[BUG] Abandon Sources Failure in 3.2

Scott Wallace squeak-dev at lists.squeakfoundation.org
Sat Oct 5 08:29:26 UTC 2002


Michael,

Very interesting!  Indeed, the decompiled version of this method 
(Morph.mouseDownPriority) cannot be recompiled because it has code 
(viz. the #flag: call) after the logical method end.

An easy workaround is:  before abandoning sources, just submit a 
revised version of this problematic method in which you have removed 
the #flag call, which has no functional role in the method anyway. 
The replacement method could be the following:

------

!Morph methodsFor: 'events-processing' stamp: 'sw 10/5/2002 01:18'!
mouseDownPriority
	"Return the default mouse down priority for the receiver"

	^ (self isPartsDonor or: [self isPartsBin])
		ifTrue:	[50]
		ifFalse:	[0]! !

------

With any luck, this is the only method that has this problem, but if 
any others are revealed, they can be dealt with in the same way.

Hope this helps,

   -- Scott



At 11:55 AM -0600 10/4/02, cole at nimiqinc.com wrote:
>Hi,
>
>In trying to deliver a small application based on 3.2 I found that I am
>unable to successfullt abandon sources. The failure comes with a syntax
>error in Morph events-processing MouseDownPriority:
>
>mouseDownPriority
>	(self isPartsDonor
>			or: [self isPartsBin])
>		ifTrue: [^ 50].
>	^ 0.
>	End of block expected ->self flag: #workAround
>
>I checked this in a stock 3.2 image and was also unable to abandon
>sources (but did not get exactly the same error message).
>
>Any ideas?
>
>
>Michael




More information about the Squeak-dev mailing list