comp.lang.ada
 help / color / mirror / Atom feed
* exception handling
@ 1986-05-13 22:57 MIXSIM
  0 siblings, 0 replies; 44+ messages in thread
From: MIXSIM @ 1986-05-13 22:57 UTC (permalink / raw)


Hello people,

I don't think my first request got through, so here it goes again.

Has anybody mastered the art of exception handling??? Are there any
research papers or phd thesis or writing on bathroom walls that has
solved this headache.  I am not real enthused about runtime visibility
of exceptions.

Talk to me!!!!!!!!!!!!!!
                           Thanks,
                             Mike Endrizzi

^ permalink raw reply	[flat|nested] 44+ messages in thread
* Exception Handling
@ 1996-09-12  0:00 Robbie Gates
  1996-09-12  0:00 ` Patrick Doyle
                   ` (3 more replies)
  0 siblings, 4 replies; 44+ messages in thread
From: Robbie Gates @ 1996-09-12  0:00 UTC (permalink / raw)



Hi all,
  Just a quick query:
Where did the concept of exception handling originate ? For example,
which languages were first to support this, or which papers first
proposed exception handling ?
  replies by email please, i don't read this group.
- robbie
-- 
----------------------------------------------------------------------
      robbie gates      |
  apprentice algebraist |    http://cat.maths.usyd.edu.au/~robbie
    pgp key available   |




^ permalink raw reply	[flat|nested] 44+ messages in thread
* Re: Exception Handling
@ 1996-09-13  0:00 Marin David Condic, 407.796.8997, M/S 731-93
  1996-09-15  0:00 ` Larry Kilgallen
  1996-09-23  0:00 ` Robin Vowels
  0 siblings, 2 replies; 44+ messages in thread
From: Marin David Condic, 407.796.8997, M/S 731-93 @ 1996-09-13  0:00 UTC (permalink / raw)



Felix Kasza <felixk@MAILBAG.SHD.DE> writes:
>I don't know -- but I do know that IBM's /360 architecture uses a
>mechanism for OS calls which looks very much like a trap.  PDPs used
>similar features to handle illegal memory references.  In the late 60s
>or early 70s, I saw an APL interpreter for the PDP that expressly made
>use of this although it didn't export the functionality to the
>programmer (APL has no concept of an exception).
>
    Well, if we include "hardware" in the picture, you'd have to go
    back to the very first invention of an interrupt. Assemblers, of
    course, let you write an interrupt handler and in that sense had
    "exception processing."

    When did it get incorporated in computer languages? That requires
    an answer to the question: "What exactly do you mean by 'exception
    processing'?" "Asynchronous transfer of control when an error is
    detected by the hardware or the programmer" would allow any
    language which gave you the ability to write an interrupt service
    routine and/or write a software triggered interrupt to qualify.
    That's most of them - except since this was always hardware
    dependent, it was probably not done as part of any "language
    standard" (more likely a vendor supplied utility).

    If we mean "programmer triggered exceptions" then we'd have to
    look to all the languages which provided some kind of syntax
    similar to: "ON ERROR THEN GOTO XXXX" - which would include quite
    a few very antiquated languages.

    If we mean "language triggered exceptions" (runtime checks
    inserted by the language translator and unseen by the programmer
    which may or may not include various hardware interrupts or
    exceptions which transfer control to a programmer specified chunk
    of code) then I *think* that Ada83 pretty much invented it. I am
    reasonably fluent in Fortran, Cobol, Pascal, C, and Ada and I have
    a passing knowlege of a number of more obscure languages like
    Lisp, Snobol, RPG, etc., and Ada was the first language I've ever
    encountered which included something in its syntax which meets
    this definition.

    I encountered Ada in the late '70s and discovered the exception
    handler at that point. One could check the Rationale for Ada 83
    and some of its early design documents which would give clues as
    to where the language designers derived their ideas. The
    brain-cell I dedicated to those events reminds me that the
    designers looked at many other languages and didn't find
    "adequate" features to cover a number of requirements such as
    tasking, exception handling, etc. That would be a hint, but I
    don't trust that brain-cell much these days.

    MDC

Marin David Condic, Senior Computer Engineer    ATT:        561.796.8997
M/S 731-96                                      Technet:    796.8997
Pratt & Whitney, GESP                           Fax:        561.796.4669
P.O. Box 109600                                 Internet:   CONDICMA@PWFL.COM
West Palm Beach, FL 33410-9600                  Internet:   CONDIC@FLINET.COM
===============================================================================
   "Don't say yes until I finish talking."

        -- Darryl F. Zanuck
===============================================================================




^ permalink raw reply	[flat|nested] 44+ messages in thread
* Re: Exception Handling
@ 1996-09-17  0:00 John Goodenough
  0 siblings, 0 replies; 44+ messages in thread
From: John Goodenough @ 1996-09-17  0:00 UTC (permalink / raw)




In article <3238B024.794B@maths.usyd.edu.au>, Robbie Gates writes:

|> > >>Where did the concept of exception handling originate ? For example,
|> > >>which languages were first to support this, or which papers first
|> > >>proposed exception handling ?

I believe the first paper to propose the use of the term and to give a
comprehensive discussion of the concept was, well, the following:

    Goodenough, J. B. Exception handling: issues and a proposed notation. CACM
    17, 12 (Dec. 1975), 683-696.

which was based on a paper and presentation given at the Second ACM Symposium
on Principles of Programming Languages in January 1975.  PL/I was the first
widely used language to support exception conditions (called ON conditions),
so someone on the PL/I design team deserves credit for giving high level
language support to the concept.  The notion itself is supported by a variety
of other language mechanisms, as is discussed in the above paper.

There have subsequently been a number of papers and theses on the concept.

John B. Goodenough					Goodenough@sei.cmu.edu
Software Engineering Institute				412-268-6391








^ permalink raw reply	[flat|nested] 44+ messages in thread
* Re: Exception Handling
@ 1996-09-17  0:00 Marin David Condic, 407.796.8997, M/S 731-93
  1996-09-19  0:00 ` Larry Kilgallen
  0 siblings, 1 reply; 44+ messages in thread
From: Marin David Condic, 407.796.8997, M/S 731-93 @ 1996-09-17  0:00 UTC (permalink / raw)



Larry Kilgallen <kilgallen@EISNER.DECUS.ORG> writes:
>DEC Pascal triggers exceptions when constraints are violated, and
>catching them is done in a vendor-specific manner.  I would assume
>the discussion is not limited to standard-based implementations,
>because then we would not be talking about who originate the concept
>but rather whose committee was quickest to adopt research.
>
    I've long admired the quality of DEC compilers ever since using
    their Fortran-10 on the PDP-10. I have two questions: 1) At what
    point in time did they extend "standard" Pascal with some form of
    exception processing? 2) Could you show a "simple" example of how
    a user might raise & handle the exception? Thanks.

    MDC
Marin David Condic, Senior Computer Engineer    ATT:        561.796.8997
M/S 731-96                                      Technet:    796.8997
Pratt & Whitney, GESP                           Fax:        561.796.4669
P.O. Box 109600                                 Internet:   CONDICMA@PWFL.COM
West Palm Beach, FL 33410-9600                  Internet:   CONDIC@FLINET.COM
===============================================================================
   "Don't say yes until I finish talking."

        -- Darryl F. Zanuck
===============================================================================




^ permalink raw reply	[flat|nested] 44+ messages in thread
* Re: Exception Handling
@ 1996-09-28  0:00 Robert Dewar
  0 siblings, 0 replies; 44+ messages in thread
From: Robert Dewar @ 1996-09-28  0:00 UTC (permalink / raw)



Bob Halpern said

"There was hardware and software for exception handling that predated the
360."

Yes indeed, the KDF9 had a particularly nice interrupt system. You could
issue a tape read to a block of memory. There was no end of transfer
interrupt BUT if you attempted to read from the block of memory before
the transfer was complete THEN you got an interrupt. This is a nicer
arrangement than we see in current day hardware!





^ permalink raw reply	[flat|nested] 44+ messages in thread
* Exception Handling
@ 2000-05-29  0:00 NANCY HEHIR
  2000-05-29  0:00 ` Preben Randhol
                   ` (3 more replies)
  0 siblings, 4 replies; 44+ messages in thread
From: NANCY HEHIR @ 2000-05-29  0:00 UTC (permalink / raw)


The Ada language reference manual (chapter 11) indicates that when an
exception is raised the main body of code is abandoned and that if code
exists for handling the exception then this is executed.

Is it possible to use the exception handler to return to the main body at a
point before the point where the exception is raised?

For example: If I prompt for a keyboard input of ,say an eight character
string, and a seven char string is actually inputted, a Constraint_Error is
raised. Can I use a handling device to return the execution to the prompt
for input ?






^ permalink raw reply	[flat|nested] 44+ messages in thread

end of thread, other threads:[~2000-06-05  0:00 UTC | newest]

Thread overview: 44+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1986-05-13 22:57 exception handling MIXSIM
  -- strict thread matches above, loose matches on Subject: below --
1996-09-12  0:00 Exception Handling Robbie Gates
1996-09-12  0:00 ` Patrick Doyle
1996-09-12  0:00   ` Rick Decker
1996-09-13  0:00     ` Larry Kilgallen
1996-09-12  0:00 ` Bryce
1996-09-12  0:00   ` Larry Kilgallen
1996-09-13  0:00     ` Robbie Gates
1996-09-14  0:00       ` Paul A. Houle
1996-09-18  0:00         ` Rick Decker
1996-09-13  0:00 ` Felix Kasza
1996-09-13  0:00   ` David B. Shapcott [C]
1996-09-18  0:00     ` Bart Termorshuizen
1996-09-16  0:00 ` Norman H. Cohen
1996-09-23  0:00   ` Robin Vowels
1996-09-24  0:00     ` Bob Halpern
1996-10-02  0:00       ` Fritz Schneider
1996-10-07  0:00         ` Robin Vowels
1996-10-09  0:00         ` shmuel
1996-10-09  0:00           ` Bob Halpern
1996-09-26  0:00     ` Thiago
1996-09-13  0:00 Marin David Condic, 407.796.8997, M/S 731-93
1996-09-15  0:00 ` Larry Kilgallen
1996-09-23  0:00 ` Robin Vowels
1996-09-17  0:00 John Goodenough
1996-09-17  0:00 Marin David Condic, 407.796.8997, M/S 731-93
1996-09-19  0:00 ` Larry Kilgallen
1996-09-28  0:00 Robert Dewar
2000-05-29  0:00 NANCY HEHIR
2000-05-29  0:00 ` Preben Randhol
2000-05-30  0:00 ` Jeffrey D. Cherry
2000-05-30  0:00   ` Gautier
2000-06-05  0:00     ` Robert Dewar
2000-06-01  0:00   ` Preben Randhol
2000-06-01  0:00     ` Jeff Carter
2000-06-02  0:00       ` Preben Randhol
2000-06-02  0:00       ` Jeffrey D. Cherry
2000-06-01  0:00     ` Ehud Lamm
2000-06-01  0:00     ` Jeffrey D. Cherry
2000-06-02  0:00       ` David C. Hoos, Sr.
2000-06-02  0:00         ` Jeffrey D. Cherry
2000-06-01  0:00     ` Preben Randhol
2000-05-30  0:00 ` Antonio Dur�n Dom�nguez
2000-05-30  0:00 ` Robert Dewar

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