[squeak-dev] ReadingOnlyVariableBindings

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Fri Mar 8 20:49:41 UTC 2013


2013/3/8 Colin Putney <colin at wiresong.com>:
>
>
>
> On Fri, Mar 8, 2013 at 12:42 PM, Nicolas Cellier
> <nicolas.cellier.aka.nice at gmail.com> wrote:
>>
>> See the method
>>
>> isSpecialWriteBinding
>>         "Return true if this variable binding is write protected, e.g.,
>> should not be accessed primitively but rather by sending #value:
>> messages"
>>         ^true
>>
>> And its senders.
>> That means that a different byte code must be generated in order to
>> send #value rather than accessing the 2nd inst. var. directly.
>>
>> Nicolas
>
>
> Aahh, that makes sense. Thanks.
>
> Colin
>

More precisely
isSpecialReadBinding triggers read access thru #value
isSpecialWriteBinding  triggers write access thru #value:
But I think you understood me :)

Nicolas

>
>


More information about the Squeak-dev mailing list