|
From: | Paolo Bonzini |
Subject: | [Help-smalltalk] Re: Iliad - asResponse implementation |
Date: | Mon, 22 Jun 2009 11:14:00 +0200 |
User-agent: | Thunderbird 2.0.0.17 (X11/20081009) |
Nicolas Petton wrote:
Committed. I also modified the other classes that implemented #asResponse.
I suggest that you implement #next:putAll:startingAt: and #next:put:. These are important to minimize copies and garbage collections, for example in the Iconv or Zlib packages. While these are not used if you do "response nextPutAll: anEncodedStream", they are part of the expected protocol for #nextPutAllOn: ("anEncodedStream nextPutAllOn: response").
They can of course be simply forwarded to the stream. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |