Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
A proposed Ada library error mechanism
Hodgson G., Gardner P.  Ada-components: libraries and tools (, Stockholm, Sweden, May 26-28, 1987)1561987.Type:Proceedings
Date Reviewed: Dec 1 1988

In this paper, Hodgson and Gardner describe the error mechanisms incorporated into the Ada NAG library. These mechanisms are flexible, yet very simple to use when default conditions are employed. The NAG approach is based on data structures that record error diagnostic details, and procedures to perform recovery operations when errors are detected.

Errors are classified according to severity and recorded with enough detail to allow them to be diagnosed accurately. The NAG library designers have been thorough, taking into account such special Ada issues as concurrent tasks and exceptions. A user may provide application-specific error-handling procedures or adopt the conventions of the default procedures included in the library.

The authors have written this paper to provide an example of one workable method of handling errors in large libraries. This is an important topic since Ada programming encourages the use of reusable libraries, and there are many possible error-handling strategies. The authors have succeeded in making their approach clear, and have given enough detail to allow the reader to design a similar system.

This paper is interesting because it describes some carefully designed error-handling conventions. However, there are a few points that most Ada users will not agree with. The authors refer to some of the characteristics of Ada exceptions as “shortcomings” without providing any rationale for this judgment. Many of these “shortcomings” are in fact the best possible choices given the Ada requirement of real-time efficiency. Some of the NAG error description types appear to have components of arbitrary length, which will cause a few Ada compilers to allocate excessive amounts of memory. Finally, and most seriously, the use of generics with error-handling procedures supplied as generic parameters will result in unbearable recompilation costs if the user wants to vary the application error-handling procedures frequently. This appears to be the Achilles’ heel of the NAG approach.

This paper will be of interest to those designing Ada libraries. The reader must be quite familiar with Ada to understand the concise descriptions and somewhat complex examples easily. The paper is well written, logically organized, and worthwhile reading for this audience.

Reviewer:  R. P. Leavitt Review #: CR112737
Bookmark and Share
 
Ada (D.3.2 ... )
 
 
Diagnostics (D.2.5 ... )
 
 
Error Handling And Recovery (D.2.5 ... )
 
 
Software Libraries (D.2.2 ... )
 
Would you recommend this review?
yes
no
Other reviews under "Ada": Date
Ada programmer’s handbook
Gonzalez D. (ed), Benjamin-Cummings Publ. Co., Inc., Redwood City, CA, 1991. Type: Book (9780805325294)
Jul 1 1991
Ada
Gehani N. (ed), Silicon Press, Summit, NJ, 1991. Type: Book (9780929306087)
Jun 1 1992
Ada
Lynch B. (ed)  Ada,Dublin, Ireland,Jun 12-14, 1990,1990. Type: Whole Proceedings
Jun 1 1992
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy