pharo - Smalltalk ReferenceStream has problems with new instance variables? -
in pharo smalltalk i'm using referencestream serialise list of objects -- here's class definition of objects i'm serialising:
object subclass: #task instancevariablenames: 'title notes list project datenextaction datecreated datecompleted importance selected' classvariablenames: 'database' pooldictionaries: '' category: 'todo'
i'm using smfiledatabase
method described here: http://book.seaside.st/book/advanced/persistency/image-based-persistency
this has been working well, , it's been nice not have use database prototype app.
howevere, here's problem: when add new instance variable person
task
load referencestream breaks:
object subclass: #task instancevariablenames: 'title notes list project person datenextaction datecreated datecompleted importance selected' classvariablenames: 'database' pooldictionaries: '' category: 'todo'
it seems not spot new variable, , load values wrong slots, person takes value of datenextaction
, datenextaction
takes datecreated
, on.
how can stop happening?
i've got working placing new variable @ end of list, i'd group variables type.
referencestream not supported anymore , has been deleted in pharo 2.0. should use fuel written, documented, tested , fast. http://rmod.lille.inria.fr/web/pier/software/fuel
Comments
Post a Comment