IdentitySet bug?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

IdentitySet bug?

Jochen Riekhof-8
Hi...

displaying the following lines in a workspace reveals false:
a := #(1 2 3) asIdentitySet.
b := IdentitySet withAll: a.
a = b.

Looks to me like a serious bug, or? (the same answers true in Squeak 3.6).

Ciao


...Jochen


Reply | Threaded
Open this post in threaded view
|

Re: IdentitySet bug?

Chris Uppal-3
Jochen,

> displaying the following lines in a workspace reveals false:
> a := #(1 2 3) asIdentitySet.
> b := IdentitySet withAll: a.
> a = b.

I think that's Behaviour As Designed -- see the comment of Set>>equals:

(I agree that it's a nuisance, but I suppose compatibility is also
important...)

    -- chris


Reply | Threaded
Open this post in threaded view
|

Re: IdentitySet bug?

Jochen Riekhof-8
> (I agree that it's a nuisance, but I suppose compatibility is also
> important...)
  :-)


Thanks

Ciao

...Jochen