comp.lang.ada
 help / color / mirror / Atom feed
From: "Ken Garlington" <Ken.Garlington@computer.org>
Subject: Re: Exiting from a function or procedure
Date: 2000/04/22
Date: 2000-04-22T00:00:00+00:00	[thread overview]
Message-ID: <YLhM4.421$X55.50231@news.flash.net> (raw)
In-Reply-To: 8ds3qe$q2d$1@nnrp1.deja.com

Everything Dr. Dewar said, plus this:

* Ledgard's book was pretty minimal with respect to explaining Ada83, and of
course it doesn't address all of the capabilities now available in the
current version of Ada (and supported by GNAT). When you get past the
basics, try to find some time to explore the "bigger picture" with a more
recent reference.

* You've defined what should happen if your exponents are unequal. Have you
considered what (if anything) should happen if the sum of the coefficients
will be too big to fit in the range of the result? See the description of
CONSTRAINT_ERROR in sections 10.1 and 10.3 of Ledgard.

Also, one other note: For GNAT, the statement "the program terminates with a
nice message saying that the exception... was unhandled" is probably true.
However, I don't think the standard requires "a nice message." If you want
your program to behave nicely (and consistently) when compiled with any
compiler, you will need to define that behavior within the program.






  parent reply	other threads:[~2000-04-22  0:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-21  0:00 Exiting from a function or procedure Andres Tarallo
2000-04-21  0:00 ` tmoran
2000-04-21  0:00   ` Andres Tarallo
2000-04-22  0:00     ` Robert Dewar
2000-04-22  0:00       ` Pablo Moisset
2000-04-23  0:00         ` Robert Dewar
2000-04-22  0:00       ` tmoran
2000-04-22  0:00         ` Ray Blaak
2000-04-22  0:00           ` David Starner
2000-04-23  0:00         ` Robert Dewar
2000-04-23  0:00           ` tmoran
2000-04-24  0:00             ` Robert Dewar
2000-04-24  0:00               ` tmoran
2000-04-24  0:00                 ` Robert Dewar
2000-04-24  0:00             ` Robert Dewar
2000-04-22  0:00       ` Ken Garlington [this message]
2000-04-24  0:00       ` Scott Ingram
2000-04-22  0:00   ` Robert Dewar
2000-04-21  0:00 ` Robert A Duff
replies disabled

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