[squeak-dev] Fwd: [Vm-dev] true isReadOnlyObject ~~ false isReadOnlyObject

Fabio Niephaus lists at fniephaus.com
Mon Jul 26 07:35:43 UTC 2021


Hi all,

Not sure when and who set the immutability flag for some well-known
objects, but it seems the `false` object is missing it. What's the
best fix for this?

Cheers,
Fabio

---------- Forwarded message ---------
From: Clément Béra <bera.clement at gmail.com>
Date: Sun, Jul 25, 2021 at 9:54 PM
Subject: Re: [Vm-dev] true isReadOnlyObject ~~ false isReadOnlyObject
To: Open Smalltalk Virtual Machine Development Discussion
<vm-dev at lists.squeakfoundation.org>



I think you can fix it from the image using the setIsReadOnly
primitive on false? It looks like a bug.

On Sat, Jul 24, 2021 at 12:27 PM Fabio Niephaus <lists at fniephaus.com> wrote:
>
>
> Hi all,
>
> Just scanned my image for read-only objects and these were all their classes:
> ByteSymbol UndefinedObject ByteString Array GitStamp True ByteArray.
>
> For some reason, False seems to be missing. Hence, this is true:
> `true isReadOnlyObject ~~ false isReadOnlyObject`
>
> Seems like a minor bug somewhere?
>
> Cheers,
> Fabio



-- 
Clément Béra
https://clementbera.github.io/
https://clementbera.wordpress.com/


More information about the Squeak-dev mailing list