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

karl ramberg karlramberg at gmail.com
Wed Feb 19 16:21:16 UTC 2020


Thanks for the information.
This was quite surprising  behavior and I hope we soon have a fix.

:-)

Best,
Karl


On Wed, Feb 19, 2020 at 4:36 PM 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 ;-)
>
> Regards .. Subbu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200219/269e0be3/attachment.html>


More information about the Squeak-dev mailing list