Logo

Programming-Idioms

History of Idiom 59 > diff from v21 to v22

Edit summary for version 22 by :
New Ada implementation by user [Smaehtin]

Version 21

2015-11-30, 12:37:29

Version 22

2016-02-17, 20:15:47

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").

Imports
with Ada.Text_IO;
use Ada.Text_IO;
Code
Put_Line (Standard_Error, Integer'Image (X) & " is negative");