[squeak-dev] Re: [Pharo-dev] problem with become:?

Nicolai Hess nicolaihess at gmail.com
Fri Jan 8 22:11:29 UTC 2016


2016-01-08 23:09 GMT+01:00 Eliot Miranda <eliot.miranda at gmail.com>:

> Hi Doru,
>
> On Fri, Jan 8, 2016 at 12:02 PM, Tudor Girba <tudor at tudorgirba.com> wrote:
>
>> Hi,
>>
>> If I execute the following code in the latest Pharo image:
>>
>> Object subclass: #A
>>         instanceVariableNames: ''
>>         classVariableNames: ''
>>         package: 'AA'.
>> Object subclass: #B
>>         instanceVariableNames: ''
>>         classVariableNames: ''
>>         package: 'AA'.
>> a := A new.
>> b := B new.
>> a become: b.
>> a class
>>
>> ==> “A".
>>
>> In a pre-Spur image, I used to get “B”. Is this a bug, or is there a
>> change I am not aware of?
>>
>> Cheers,
>> Doru
>>
>
> Looks like a bug to me.  I'll fix it asap.
>


There is another bug report at
http://bugs.squeak.org/view.php?id=7845

| obj1 obj2 |
obj1 := 'string'.
obj2 := 1.234.
obj1 become: obj2.
{obj1. obj2} "=> #('X9LÈv¾' 'string'). it should be #(1.234 'string') "

Squeak Cog Supr Virtual Machine 4.0.3427.0


Is it related?



>
>>
>>
>> --
>> www.tudorgirba.com
>> www.feenk.com
>>
>> "Things happen when they happen,
>> not when you talk about them happening."
>>
>>
>>
>
>
> --
> _,,,^..^,,,_
> best, Eliot
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20160108/ca51a31d/attachment.htm


More information about the Squeak-dev mailing list