[Pharo-project] Complete MethodContext stack for testing

Lukas Renggli renggli at gmail.com
Mon May 23 11:57:17 CEST 2011


Have a look at the serializer of Colin, it does serialize contexts.

Lukas

On 23 May 2011 10:33, Mariano Martinez Peck <marianopeck at gmail.com> wrote:
> Hi guys. We need to do some test to serialize a MethodContext to a file,
> materialize it, and then compare it to the original. One of the problems we
> face is that some values in the MethodContext are changed so it is difficult
> to test.
> So...what we would like is to get a "bottom" MethodContext that we can ask
> #sender, and to that one #sender, and like that....and the whole stack
> should cannot be changed.
>
> Another problem is that I cannot do a #deepCopy on a MethodContext because
> #basicNew: throws errror.
>
> Is this possible?
>
> Thanks in advance,
>
> --
> Mariano
> http://marianopeck.wordpress.com
>
>



-- 
Lukas Renggli
www.lukas-renggli.ch



More information about the Pharo-project mailing list