Hello world/Standard error: Difference between revisions

Line 1,030:
<lang smalltalk>Stderr nextPutAll: 'Goodbye, World!'</lang>
 
However, all smalltalksSmalltalks provide a console named "Transcript", where diagnostics is usually sent to (which is convenient, if there is no stderr to look at, as when started in Windows as an exe, vs. a com).<br>Thus:
<lang smalltalk>Transcript show: 'Goodbye, World!'</lang>
 
will work on all, and is the preferred way to do this.
And<br>(and yes, when operatingrunning UI-less as a console program, the global "Transcript" is usually bound to the stderr stream).
 
The above tells the stream to write a string;
Anonymous user