[squeak-dev] DNU: WriteStream>>withStyleFor:do:

Eliot Miranda eliot.miranda at gmail.com
Mon May 3 22:48:48 UTC 2010


Hi Igor,

On Sat, May 1, 2010 at 11:05 PM, Igor Stasenko <siguctua at gmail.com> wrote:

> 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.
>

Damn right :)  I don'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?


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.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20100503/1b080c75/attachment.htm


More information about the Squeak-dev mailing list