[squeak-dev] How to become immediate objects? :-)

Eliot Miranda eliot.miranda at gmail.com
Tue Apr 14 15:36:07 UTC 2020



> On Apr 14, 2020, at 6:40 AM, Levente Uzonyi <leves at caesar.elte.hu> wrote:
> 
> Hi Marcel,
> 
> That's a bug. The argument of #becomeForward: is never attempted to be modified. The following should work:
> 
> | a |
> a := Object new.
> a becomeForward: #foo.
> self assert: a = 'foo'.
> 
> The error it raises is nonsense.

+1

> 
> 
> Levente
> 
>> On Tue, 14 Apr 2020, Marcel Taeumel wrote:
>> 
>> Hi, all!
>> I suppose that since ModificationForbidden and read-only objects, the following is no longer possible:
>> MyExternalResource allInstancesDo: [:resource |
>>    resource becomeForward: #notAvailable].
>> What to do now? Introduce a custom, mutable, placeholder object instead?
>> Best,
>> Marcel
> 


More information about the Squeak-dev mailing list