Hi Igor,<br><br><div class="gmail_quote">On Sat, May 1, 2010 at 11:05 PM, Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
i found that i can&#39;t debug doits which look like following:<br>
<br>
| mytemp |<br>
mytemp := foo bar.<br>
<br>
(select the above code and use &#39;debug it&#39;)<br>
<br>
a ByteCodeAgnosticMethodNode&gt;&gt;printOn:<br>
<br>
sends a #withStyleFor:do: for printing temps on a stream.<br>
But stream does not understands this message.<br>
<br>
The WriteStream instance, used for printing a source is created in given method:<br>
<br>
fullPrintString<br>
        &quot;Answer a String whose characters are a description of the receiver.&quot;<br>
<br>
        ^ String streamContents: [:s | self printOn: s]<br>
<br>
<br>
IMO, this is wrong.<br></blockquote><div><br></div><div>Damn right :)  I don&#39;t see any print methods in my Teleplace image on ByteCodeAgnosticMethodNode, and I see no senders of withStyleFor:do: in 4.1.  Which image are you working in?</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
ByteCodeAgnosticMethodNode should not assume that<br>
output stream (supplied in #printOn: argument) supports any styling.<br>
For instance i can supply a file stream to it, so a method node will<br>
print its decompiled contents into a file. And, obviously, there is no<br>
any styling available.<br>
<font color="#888888"><br>
<br>
--<br>
Best regards,<br>
Igor Stasenko AKA sig.<br>
<br>
</font></blockquote></div><br>