comp.lang.ada
 help / color / mirror / Atom feed
From: amir.shaked@ca.com (Amir Shaked)
Subject: Get Integer into Enumeration_IO doesn't work
Date: 16 Nov 2002 02:17:54 -0800
Date: 2002-11-16T10:17:55+00:00	[thread overview]
Message-ID: <b740187a.0211160217.658dc54@posting.google.com> (raw)

Hello,

The following code compiles and links
but fails on DATA_ERROR in run-time.
Can you tell me why?

with Text_IO;
procedure PrintInt
is
   Num  : Integer;
   package EnumIO is new Text_IO.Enumeration_IO(Integer);
begin
   Text_IO.Put_Line ("Enter Num:");
   EnumIO.Get (Num);
end PrintInt;



             reply	other threads:[~2002-11-16 10:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-16 10:17 Amir Shaked [this message]
2002-11-16 11:13 ` Get Integer into Enumeration_IO doesn't work David C. Hoos, Sr.
2002-11-17  8:38 ` Dr. Michael Paus
  -- strict thread matches above, loose matches on Subject: below --
2002-11-18  6:38 Grein, Christoph
2002-11-18 14:28 ` Peter Richtmyer
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox