Login  Register

Re: STON: Skip Inst Var

Posted by Sven Van Caekenberghe-2 on Sep 09, 2017; 8:28am
URL: https://forum.world.st/STON-Skip-Inst-Var-tp4967139p4967147.html


> On 9 Sep 2017, at 05:44, Sean P. DeNigris <[hidden email]> wrote:
>
> I was migrating some data from Pharo 4 to Pharo 6.1 and fell over the fact
> that FileSystem has a #workingDirectory instVar in the source, but not in
> the target. I ended up monkey patching STON until the objects were loaded
> and then reverting, but is there a way to skip an inst var via the proper
> STON API?

STON does not work like NeoJSON where you can define your own mapping. For STON, there is one, system-wide way to serialize/deserialize a specific class. You would have to change the way the offending object get handled.


> -----
> Cheers,
> Sean
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>