[FIX] JonMajorShrink

Jon Hylands jon at huv.com
Thu Aug 30 22:18:58 UTC 2001


On Thu, 30 Aug 2001 11:00:50 -0400, "PhiHo Hoang" <phiho.hoang at home.com>
wrote:

>     This almost works, if not for a syntax error at the very end. In the
> 'Syntax Error' window, I can see:
> 
>     "Dictionary as yet unclassified Squeak3" in the top pane and
>     "Squeak3.1a-4282.image-Argument expected ->---#(24 August 2001 12:07:14
> pm)" in the text pane.

Very interesting. I get the same thing when I use that image, so I went and
looked in the original 4282 image...

The method in question is Dictionary >> #includesKey:

The source pointer is broken.

Here's the source code for that method from an earlier release:

includesKey: key 
	"Answer whether the receiver has a key equal to the argument, key."
	| index |
	index _ self findElementOrNil: key.
	(array at: index) == nil	
		ifTrue: [^ false]
		ifFalse: [^ true]

If you copy & paste that into a browser before you start, and save the
method, everything should work again.

BTW, if you follow the steps I outlined, you don't need to comment out that
line from #discardOddsAndEnds...

Later,
Jon

--------------------------------------------------------------
   Jon Hylands      Jon at huv.com      http://www.huv.com/jon

  Project: Micro Seeker (Micro Autonomous Underwater Vehicle)
           http://www.huv.com




More information about the Squeak-dev mailing list