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, _______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Thank you guys..I was indeed making some default instances with this literal arrays..and this was the first time I have to edit those..
Thanks! On Fri, Jun 3, 2016 at 8:46 PM, Richard Sargent <[hidden email]> wrote:
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
aRow is an array that was created as part of a compiled method. The error is preventing you from changing code by changing the literal array. You may want to #collect: copies of each row that are then modified. Then again the code seems to serve no purpose except perhaps if intended for data read from an external source; with real externally sourced data the error would not happen. Paul Baumann On Jun 3, 2016 8:09 PM, "Mariano Martinez Peck via Glass" <[hidden email]> wrote:
_______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Free forum by Nabble | Edit this page |