[squeak-dev] ReadingOnlyVariableBindings

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


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

2013/3/8 Colin Putney <colin at wiresong.com>:
> Hi everyone,
>
> One oddity I discovered while working on Environments is that, when a
> binding is converted to read-only or read-write, all the methods that refer
> to that binding are recompiled.
>
> Does anybody know why this is done?
>
> Colin
>
>
>


More information about the Squeak-dev mailing list