Logo

Programming-Idioms

History of Idiom 59 > diff from v30 to v31

Edit summary for version 31 by Slce:
New Pascal implementation by user [Slce]

Version 30

2016-04-07, 07:57:11

Version 31

2017-09-28, 01:18:46

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');
Comments bubble
If first argument indicates a text file or stream (as here), it is taken as the output file for writeln.
Doc URL
https://www.freepascal.org/docs-html/rtl/system/writeln.html
Demo URL
http://tpcg.io/nshNmK