[squeak-dev] [BUG] Issue with Matrix in instance variable

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Feb 24 18:47:41 UTC 2020


I see the issue will be fixed soon, but couldn't resist sharing this crazy screenshot with you:

[cid:137025b0-bbd3-4c56-adce-848aeef2e389]
(debugged it and reselected the context)

It even breaks the debugger map, #where goes totally wrong ... I'm looking forward to the day literals will be immutable :-)


Best,

Christoph

________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von Eliot Miranda <eliot.miranda at gmail.com>
Gesendet: Mittwoch, 19. Februar 2020 17:39:16
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] [BUG] Issue with Matrix in instance variable

Hi All,

> On Feb 19, 2020, at 7:36 AM, K K Subbu <kksubbu.ml at gmail.com> wrote:
>
> On 19/02/20 2:38 PM, Marcel Taeumel wrote:
>> initialize
>> super initialize.
>> grid := Matrix rows: 3 columns: 3 contents: #(
>> 5 3 0
>> 6 0 0
>> 0 9 8 )
>
> Here is a simpler example.
>
> b := 'hello'.
> a := 'hello'.
> a at: 5 put: $!.
> b inspect
>
> Shouldn't literals be immutable, particularly those with multiple refs? The #at:put: should have raised an error.
>
> What if b is passed to a method to create a symbol and it gets changed meanwhile in another thread? Won't hell break loose ;-)

Puhleaze!  This is ancient, well known, and a fix has been on deck for nearly a year waiting for a major release.


>
> Regards .. Subbu
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200224/6cd6a8e6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedImage.png
Type: image/png
Size: 41277 bytes
Desc: pastedImage.png
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200224/6cd6a8e6/attachment-0001.png>


More information about the Squeak-dev mailing list