Are assignment to block variables is prohibited?
Hi I know that method arg are read only and you cannot assign to them. Now what is the status of block arguments? Because some old code of plotmorph is breaking. Stef
Yes. But there is a setting for the compiler to load/compile code with errors. 2017-09-14 20:46 GMT+02:00 Stephane Ducasse <stepharo.self@gmail.com>:
Hi
I know that method arg are read only and you cannot assign to them. Now what is the status of block arguments? Because some old code of plotmorph is breaking.
Stef
2017-09-14 21:43 GMT+02:00 Nicolai Hess <nicolaihess@gmail.com>:
Yes. But there is a setting for the compiler to load/compile code with errors.
2017-09-14 20:46 GMT+02:00 Stephane Ducasse <stepharo.self@gmail.com>:
Hi
I know that method arg are read only and you cannot assign to them. Now what is the status of block arguments? Because some old code of plotmorph is breaking.
Stef
But using catalog, I can load plotmorph, even without enabling this setting.
On 14 Sep 2017, at 22:00, Nicolai Hess <nicolaihess@gmail.com> wrote:
2017-09-14 21:43 GMT+02:00 Nicolai Hess <nicolaihess@gmail.com <mailto:nicolaihess@gmail.com>>: Yes. But there is a setting for the compiler to load/compile code with errors.
2017-09-14 20:46 GMT+02:00 Stephane Ducasse <stepharo.self@gmail.com <mailto:stepharo.self@gmail.com>>: Hi
I know that method arg are read only and you cannot assign to them. Now what is the status of block arguments? Because some old code of plotmorph is breaking.
Stef
But using catalog, I can load plotmorph, even without enabling this setting.
OCStoreIntoReadOnlyVariableError checks if you are compiling interactively or not. signal compilationContext interactive ifFalse: [ ^ self crTrace ]. ^ super signal This way old code load fine, but you are not allowed to create such code while coding⦠and you have to fix code when recompiling a method interactively that has an assignment to an argument. Marcus
Yes I checked again and I do not get why it is barking with mark load it. I will look at the plotmorph code later. On Thu, Sep 14, 2017 at 10:00 PM, Nicolai Hess <nicolaihess@gmail.com> wrote:
2017-09-14 21:43 GMT+02:00 Nicolai Hess <nicolaihess@gmail.com>:
Yes. But there is a setting for the compiler to load/compile code with errors.
2017-09-14 20:46 GMT+02:00 Stephane Ducasse <stepharo.self@gmail.com>:
Hi
I know that method arg are read only and you cannot assign to them. Now what is the status of block arguments? Because some old code of plotmorph is breaking.
Stef
But using catalog, I can load plotmorph, even without enabling this setting.
participants (3)
-
Marcus Denker -
Nicolai Hess -
Stephane Ducasse