[BUG] Abandon Sources Failure in 3.2
cole at nimiqinc.com
cole at nimiqinc.com
Mon Oct 7 15:57:17 UTC 2002
Scott,
Thanks for the quick reply. Editing the method solved that problem, but
I now get another error complaining of an improper store in the
CompiledMethod copyWithTempNames qCompress method. Again, I have
confirmed the same error in a stock 3.2 image.
Michael
Scott Wallace <scott.wallace at squeakland.org> wrote:
> 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
|