[squeak-dev] SequenceableCollection #= method in current trunk differs from Squeak 5.2
David T. Lewis
lewis at mail.msen.com
Fri Jul 3 12:42:59 UTC 2020
On Mon, Jun 29, 2020 at 02:43:26AM +0200, Levente Uzonyi wrote:
> Hi Nikolai,
> On Mon, 29 Jun 2020, Nikolay Suslov wrote:
> >Hello all,
> >Figuring out, could we go back to the previous version of
> >SequenceableCollection??#= method (as in Squeak 5.2), to check if the
> >receiver is??equivalent to the otherCollection by using "self species ==
> >otherCollection species",
> >instead of "self class = otherCollection class"?
> IIRC there was a good reason for that change though I can't recall
> what it was. I'm sure the mailing list remembers.
The change has my initials on it, and it was introduced here:
Time: 16 February 2019, 6:18:27.925895 pm
Classes are expected to be unique in the system, but in some cases (e.g. Magma)
it is also useful to expect a proxy for a class to test equivalent to the
actual class. Therefore, in SequenceableCollection>>= use #= rather than #==
for the class comparison.
The discussion on the list was here:
More information about the Squeak-dev