Logo

Programming-Idioms

History of Idiom 59 > diff from v28 to v29

Edit summary for version 29 by :
New Lua implementation by user [Nepta]

Version 28

2016-04-05, 04:33:14

Version 29

2016-04-07, 07:56:25

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
io.stderr:write(string.format("%d is negative",-2))