[squeak-dev] DNU: WriteStream>>withStyleFor:do:
Igor Stasenko
siguctua at gmail.com
Sun May 2 06:05:42 UTC 2010
Hello,
i found that i can't debug doits which look like following:
| mytemp |
mytemp := foo bar.
(select the above code and use 'debug it')
a ByteCodeAgnosticMethodNode>>printOn:
sends a #withStyleFor:do: for printing temps on a stream.
But stream does not understands this message.
The WriteStream instance, used for printing a source is created in given method:
fullPrintString
"Answer a String whose characters are a description of the receiver."
^ String streamContents: [:s | self printOn: s]
IMO, this is wrong.
ByteCodeAgnosticMethodNode should not assume that
output stream (supplied in #printOn: argument) supports any styling.
For instance i can supply a file stream to it, so a method node will
print its decompiled contents into a file. And, obviously, there is no
any styling available.
--
Best regards,
Igor Stasenko AKA sig.
More information about the Squeak-dev
mailing list
|