<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
    WRT clean closures, check what I did in Cuis to serialize<br>
    SortedCollections. See implementors and senders of #isClean.<br>
<br>
<br>
Nice. Thanks Juan. I was checking your code, and that&#39;s exactly why I asked Eliot. In your method you say:<br>
<br>
isClean<br>
    &quot;A clean closure is one that doesn&#39;t really need the home context because:<br>
        - It doesn&#39;t send messages to self or super<br>
        - It doesn&#39;t access any instance variable<br>
        - It doesn&#39;t access any outer temp<br>
        - It doesn&#39;t do ^ return&quot;<br>
.....<br>
<br>
So... my question is, WHAT do I need to serialize if I want to be able to serialize also &quot;non clean&quot;. I mean, for each item on that list, what do I need apart from the closure instance and the receiver and method from the outerContext ?  the whole stack of contexts ?<br>

<br>
</div></div></blockquote>
<br>
I think it is needed to know why you need to serialize a non-clean closure. If it is just to be able to evaluate it,</blockquote><div><br>well, some people may just need that, but there are cases where I need it completely. I mean, I need to serialize the whole possible graph of objects. This is an example for what I am doing in my PhD. We are also experiment with remote messages and things like that and sometimes we pass a whole stack. In that case I thin it also make sense. But again, these are particular cases. I agree that most of the times the closure will be &quot;clean&quot;<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> maybe you don&#39;t need the stack at all. My trick could be augmented by serializing any referenced objects, but not the stack.<br>

<br></blockquote><div><br>Yes, maybe I was not clear. When I refer to &quot;stack&quot; I refer all instances of ContextPart (well, subclasses) and all the objects reachable from there.<br><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Cheers,<span class="HOEnZb"><font color="#888888"><br>
Juan Vuletich</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks a lot in advance!<br>
<br>
<br>
<br>
-- <br>
Mariano<br>
<a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.<u></u>com</a><br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>