[Glass] Attempt to modify invariant object, anArray

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Fri Jun 3 14:30:16 PDT 2016


Hi guys,

Quick email as I must leave now... I am trying to run this code:

tableSpec table do: [ :aRow |
| value |
value := (aRow at: 2) = 'L' ifTrue: [ 'Left' ] ifFalse: [ 'Right' ].
        aRow at: index put: value
].

the 'aRow' array is as simple as anArray ('Price' , 'R', '', '') ...
Looks like a problem of passing the array as argument...

The error I get is:

" ArgumentTypeError(AbstractException)>>_signalFromPrimitive: @5 line 15a
ArgumentTypeError occurred (error 2031), reason:markWritten.b, Attempt to
modify invariant object, anArray

I just don't get it.. grrr must run now..

Cheers,



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20160603/9ecac9d2/attachment.html>


More information about the Glass mailing list