Write a long String with a Stream: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

4 May 2025

  • curprev 20:2320:23, 4 May 2025Nmingott talk contribs 1,007 bytes +1,007 Created page with "'''TODO'''. Redo the example without using structures the reader does not have. '''Problem'''. You need to compose a long block of text, what you usually do in scripting languages is appending a String to another until you get what you need. You can do it also in Smalltalk but it is not recommended in books. '''Solution'''. Adapted from ''"Smalltalk by Example(1997)"''. You must guess approximately the size of the string you want to build, then open a write stream on i..." Tag: Visual edit