Comparing strings when using GOODS
Avi Bryant
avi.bryant at gmail.com
Tue Nov 16 09:46:28 UTC 2004
> The second one class is KKObjectProxy. Since String's "=" explicitly
> compares classes, the test fails. How could the String "=" method be
> fixed to prevent that?
You could change it to send #species instead of #class, or you could
change it to send #yourself to the object it is being compared with
first (which is what, e.g.,Object>>= is overridden to do if you have
GOODS loaded).
More information about the Squeak-dev
mailing list
|