[squeak-dev] SequenceableCollection #= method in current trunk differs from Squeak 5.2

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Fri Jul 3 15:38:58 UTC 2020


Le ven. 3 juil. 2020 à 14:43, David T. Lewis <lewis at mail.msen.com> a écrit :

> 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:
>
>   Name: Collections-dtl.821
>   Author: dtl
>   Time: 16 February 2019, 6:18:27.925895 pm
>   UUID: 9bfa29b3-5e9f-4c61-b19b-e0bb05403589
>   Ancestors: Collections-nice.820
>
>   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.
>
>
> +1 for using =

The discussion on the list was here:
>
>
> http://lists.squeakfoundation.org/pipermail/squeak-dev/2019-February/201600.html
>
> Dave
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200703/0a73f38d/attachment.html>


More information about the Squeak-dev mailing list