[squeak-dev] How to become immediate objects? :-)

Levente Uzonyi leves at caesar.elte.hu
Thu Apr 16 12:15:33 UTC 2020


On Wed, 15 Apr 2020, Chris Muller wrote:

>       But the hash can't always be copied over, so it's a tough decision what
>       the default should be:
>       - if the hash is not copied by default, the lack of rehashing will cause
>       elements to be not found in the affected collections 
>
>       - if the hash is copied, runtime errors will be raised when coping the
>       hash is not possible.
> 
> 
> I think a "lack of rehashing" issue could also occur in the latter case, too, if the target of the become (the argument) was in a identity hashed collection..

Right. #become: doesn't change the identity hashes.


Levente

> 
> 
>


More information about the Squeak-dev mailing list