Hello world/Standard error: Difference between revisions

(Added Wren)
Line 1,028:
=={{header|Smalltalk}}==
The details on to which name stderr is bound may vary between Smalltalk dialects. If different, a "Smalltalk at:#Stderr put:<name your stream here>" should provide compatibility.
 
<lang smalltalk>Stderr nextPutAll: 'Goodbye, World!'</lang>
 
However, all smalltalks provide a console named "Transcript", where diagnostics is usually sent to. Thus:
 
<lang smalltalk>Transcript show: 'Goodbye, World!'</lang>
 
will work on all, and is the preferred way to do this.
And yes, when operating UI-less, the global "Transcript" is usually bound to the stderr stream.
 
The above tells the stream to write a string;
you can also tell the string to print itself onto some stream:
<lang smalltalk>'Goodbye, World!' printOn: Stderr</lang>
Bothe have the same effect.
 
=={{header|SNOBOL4}}==
Anonymous user