Cool!

Thanks,
Alejandro

On May 7, 2015, at 2:45 PM, Mariano Martinez Peck <marianopeck@gmail.com> wrote:



On Thu, May 7, 2015 at 2:21 PM, Alejandro Infante <alejandroinfante91@gmail.com> wrote:
Hello all,

Currently I���m in the need of serializing some Spy instances and my problem is that some of the objects hold references to Classes and CompiledMethods. This gives me headaches because I would like to materialize Spy in another image which possibly does not define those classes and methods.

Is there a smart way to specify which instances variables serialize and which of them not?

Yes. 
 
Even better would be to specify that instead of serializing an instance variable #a that I know that holds a CompiledMethod, serialize the ring representation of the CompiledMethod.

That is possible too.  But rather than explaining you, it is easier for you to read the documentation: 


Go to the Documentation area and there are 2 links of interest:


Let me know if that was enough to keep you going.