From: Preben Randhol <randhol+abuse@pvv.org>
Subject: Re: Error checking for type incompatibility
Date: Tue, 11 Dec 2001 07:35:01 +0000 (UTC)
Date: 2001-12-11T07:35:01+00:00 [thread overview]
Message-ID: <slrna1bdlq.tu.randhol+abuse@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: bf8dbe70.0112101628.1092b75a@posting.google.com
On 10 Dec 2001 16:28:15 -0800, Ben wrote:
> Hi,
> I am new to Ada. I decided I would try to learn a new language and Ada
> seemed like a fun project. I got a few books, and one of them has
> challenge problem where I am supposed to do some error checking on
> input. This includes checking to make sure that the input type is
> correct. More specifically: the program is supposed to accept only
> integer values. So I need to be able to have an error handler that
> will recognize if someone tries to enter a noninteger value and ask
> them to re-enter a correct value. Since this is a "challenge problem"
> they are not giving me alot to work on here. I checked another book,
> and it had some examples on error handling, but not at the level I
> need. And neither book had any example code that was helpful.
One way is to use:
http://www.it.bton.ac.uk/staff/je/adacraft/ch07.htm
> Remember, I'm new to Ada (from the C++ world) so packages are new to
> me. What do I need folks. Your help is greatly appreciated.
Perhaps you should read more before you try this problem. Which book is
it by the way?
Preben
--
() Join the worldwide campaign to protect fundamental human rights.
'||}
{||' http://www.amnesty.org/
next prev parent reply other threads:[~2001-12-11 7:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-11 0:28 Error checking for type incompatibility Ben
2001-12-11 0:49 ` Mark Lundquist
2001-12-11 7:35 ` Preben Randhol [this message]
2001-12-11 16:31 ` Jerry Petrey
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox