Logo

Programming-Idioms

History of Idiom 59 > diff from v32 to v33

Edit summary for version 33 by programming-idioms.org:
[Pascal] Comments

Version 32

2017-09-28, 01:21:10

Version 33

2017-09-29, 14:58:35

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Code
writeln(StdErr , x , ' is negative');
Code
writeln(StdErr , x , ' is negative');
Comments bubble
If first argument indicates a text file or stream (as here), WriteLn uses it as the output file.
Comments bubble
When argument indicates a text file or stream, WriteLn uses it as the output destination.
Doc URL
https://www.freepascal.org/docs-html/rtl/system/writeln.html
Doc URL
https://www.freepascal.org/docs-html/rtl/system/writeln.html
Demo URL
http://tpcg.io/nshNmK
Demo URL
http://tpcg.io/nshNmK