Bug in Rectangle>>containsPoint:?

Chris Reuter cgreuter at calum.csclub.uwaterloo.ca
Sat Apr 25 07:35:19 UTC 1998




Hi all,

I seem to have found a bug in Rectangle.  In the method 

containsPoint: aPoint 
	       "Answer whether aPoint is within the receiver."
	       ^origin <= aPoint and: [aPoint < corner]
                                             ^^^

the second comparison is a "<".  I think it should be a "<=" instead.

(Yes, I know this is nit-picky, but I'm writing code affected by this
particular behavior and I'd like to know whether it should be changed
or not.)

				--Chris





More information about the Squeak-dev mailing list