28 lines
1.4 KiB
Plaintext
28 lines
1.4 KiB
Plaintext
{{selection|Short Circuit|Console Program Basics}}
|
|
[[Category:Streams]]
|
|
{{omit from|Applesoft BASIC}}
|
|
{{omit from|bc|Always prints to standard output.}}
|
|
{{omit from|Brainf***}}
|
|
{{omit from|dc|Always prints to standard output.}}
|
|
{{omit from|GUISS|Cannot customize error messages}}
|
|
{{omit from|Integer BASIC}}
|
|
{{omit from|Jack|No other output stream available.}}
|
|
{{omit from|SQL PL|It only prints in standard output. There is no way to print in standard error. Not even with "BEGIN SIGNAL SQLSTATE 'ABCDE' SET MESSAGE_TEXT = 'Hello World!'; END"}} <!-- The only way is with an external function in Java or C that prints in Standard Error -->
|
|
{{omit from|TI-83 BASIC|Same reason as TI-89.}}
|
|
{{omit from|TI-89 BASIC|no analogue to stderr, unless you count graph display vs. program IO}}
|
|
{{omit from|Unlambda|No concept of standard error (or alternate output streams in general).}}
|
|
|
|
A common practice in computing is to send error messages
|
|
to a different output stream than [[User Output - text|normal text console messages]].
|
|
|
|
The normal messages print to what is called "standard output" or "standard out".
|
|
|
|
The error messages print to "standard error".
|
|
|
|
This separation can be used to redirect error messages to a different place than normal messages.
|
|
|
|
|
|
;Task:
|
|
Show how to print a message to standard error by printing '''Goodbye, World!''' on that stream.
|
|
<br><br>
|