respondsTo: bug
Doug Edmunds
dae at douglasedmunds.com
Tue Dec 18 18:50:42 UTC 2007
Squeak 3.9 #7067
I happened to be comparing Squeak to Dolphin CE, and ran across
this bug in Squeak relating to respondsTo:
(3 @ 4) respondsTo: #<=. "Squeak reports this as false"
However:
(3 @ 4) <= (10 @ 15). "true"
(3 @ 4) <= (1 @ 15). "false"
Trying other methods for Point, I get many similar 'false' results when
sending 'respondsTo:' to Point (but I also get many correct results).
ie.
Point respondsTo: #abs. "false"
however,
Point respondsTo: #hash. "true"
Point respondsTo: #storeOn:. true
Point respondsTo: #x. false
but
(3 @ 4) x. "3"
Point respondsTo: #y. false
but
(3 @ 4) y. "4"
There does not seem to be any pattern to when
respondsTo: works correctly and when it doesn't.
-- dae
More information about the Squeak-dev
mailing list
|