links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
String streamContents:
Last updated at 11:05 am UTC on 11 June 2018
From a post to the Squeak mailing list by Dan Ingalls 01 February 1999

Compare this piece of code to
        | strm |
        strm := WriteStream new on: (String new: 10).
        tempNames do: [:n | strm nextPutAll: n; space].
        tempStr := strm contents.

to ...

        tempStr := String streamContents:
            [:strm | tempNames do: [:n | strm nextPutAll: n; space]].