Logo

Programming-Idioms

History of Idiom 59 > diff from v22 to v23

Edit summary for version 23 by :

Version 22

2016-02-17, 20:15:47

Version 23

2016-02-18, 16:58:00

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