[squeak-dev] set equality has changed :-(

Levente Uzonyi leves at caesar.elte.hu
Mon Apr 18 22:43:42 UTC 2016


Hi Eliot,

On Mon, 18 Apr 2016, Eliot Miranda wrote:

> Hi All,
>     this used to work:
> 
>     (Set with: #module) = (IdentitySet with: #module)
> 
> when did this change and why?

I changed it in Collections-ul.669 last November, because it didn't work 
well. Let's see a different example:

| s i |
s := Set with: 'module' copy.
i := IdentitySet with: 'module' copy.
{
 	s = i.
 	i = s
}

The old implementation would return #(false true), while the new one 
evaluates to #(false false).

Levente

> 
> _,,,^..^,,,_
> best, Eliot
> 
>


More information about the Squeak-dev mailing list