About pushBack:

Damien Cassou damien.cassou at gmail.com
Thu Aug 2 13:44:45 UTC 2007


2007/8/2, Michael Rueger <michael at impara.de>:
> stéphane ducasse wrote:
> > PositionableStream>>pushBack: aString
> >     "Compatibility with SocketStreams"
> >     self skip: aString size negated
> >
> > and it seems to me that pushBack argument is not good. It should not be
> > a string but a number since
> > it never take care of pushing back different elements in the stream but
> > just moving the cursor of the stream.
>
> Yes, but...
> On a SocketStream we can't position the cursor, once the characters are
> read they are no longer in the stream as there is no underlying
> collection. The buffer doesn't count, as the content can be replaced at
> any time during read or write.


So? I don't understand your answer. In Squeak 3.8, 3.9 and 3.10, there
is no other implementor of #pushBack nor is there any sender but
XMLTokeniser.


> > Do you know if the method pushBack on the XMLTokenizer is ever used?
>
> It's used when parsing and resolving entity definitions.

Can you put a 'self halt' on XMLTokeniser>>pushBack: and see if this
method is ever called? I can't find any sender.

-- 
Damien Cassou


More information about the Squeak-dev mailing list