From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!uunet!husc6!mailrus!utah-gr!utah-cs!sunset.utah.edu!u-dmfloy From: u-dmfloy%sunset.utah.edu@utah-cs.UUCP (Daniel M Floyd) Newsgroups: comp.lang.ada Subject: Ada exceptions Message-ID: <5701@utah-cs.UUCP> Date: 7 Sep 88 09:01:00 GMT References: <8957@swan.ulowell.edu> Sender: news@utah-cs.UUCP Reply-To: u-dmfloy%sunset.utah.edu.UUCP@utah-cs.UUCP (Daniel M Floyd) Organization: University of Utah, Computer Science Dept. List-Id: This *must* be the right newsgroup. In discussing the woes of other languages, I posted an article about excpetion handling. I thought (and still think) that some way should be available to specify what action to take when an exception occurs. For example: I'd like to say to the compiler /* exceptions sqrt(x) */ /* if -x then do_this_process */ /* if overflow then scale_routine_error */ /* if underflow then return 0 */ /* exceptions + */ /* if overflow ... I don't care what syntax is used. There are times when a halt on a fatal error can be ... fatal. I can't tolerate it at times, so I end up doing alot of firewalling before calling procedures, and if I do alot of math, it can get ugly fast. I've had two messages that say "go Ada". Can Ada really do it? If it can, I'll likely become a devotee, investing within the month. Could some Ada-ite post an Ada example like the one above, in Ada. Thanks.