> On 14 Sep 2017, at 22:00, Nicolai Hess <[email protected]> wrote:
>
>
>
> 2017-09-14 21:43 GMT+02:00 Nicolai Hess <[email protected]
> <mailto:[email protected]>>:
> 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 <[email protected]
> <mailto:[email protected]>>:
> 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