[squeak-dev] read-only literals
Eliot Miranda
eliot.miranda at gmail.com
Mon Mar 26 14:13:56 UTC 2018
On Mar 26, 2018, at 1:33 AM, Stéphane Rollandin <lecteur at zogotounga.net> wrote:
>> I guess I am missing something here :)
>
> Ah; I guess what I have been missing is how it works in VisualWorks:
> https://stackoverflow.com/questions/18994704/visualworks-cincom-smalltalk-array-initialization-differences
>
> Is that it?
Yes. Although our setter/getter and exceptions are different. But the base mechanism is effectively identical. There is a per-object read-only bit that prevents modification that is off by default and will be set for literals.
>
> Stef
>
More information about the Squeak-dev
mailing list
|