[BUG] equivalence between strings and symbols
R. A. Harmon
harmonra at webname.com
Tue Apr 11 16:31:26 UTC 2000
At 11:12 PM 4/10/00, Lex Spoon wrote:
>"R. A. Harmon" <harmonra at webname.com> wrote:
>> At 10:27 AM 4/10/00 -0700, John W. Sarkela wrote:
>> >Given the standard I believe that either #= in SequenceableCollection
>> >should check for class equality rather than species equality
>> I spent a half day playing around with changing SequenceableCollection >> #=
>> to use class, and changing String >> #= to use class or removing it
>> completely (I thought this should also work, but maybe slower).
>> Squeak did not like these changes.
>The opposite change, which allows #abc = 'abc', seems to cause less
>trouble :) Granted, I've only been trying it out for a few hours at
I am trying to implement an ANSI conforming #=. As I understand it, #abc
(an instance of class Symbol) = 'abc' (an instance of class String) would be
non-conforming implementation as their classes are different.
Richard A. Harmon "The only good zombie is a dead zombie"
harmonra at webname.com E. G. McCarthy
More information about the Squeak-dev