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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bc243f3bb85ffa4f X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Exceptions: Are they GOTOs? Date: 1996/07/15 Message-ID: #1/1 X-Deja-AN: 168584926 references: <4s9o6e$ro4@news-e2b.gnn.com> <4sc7t2$m5g@news-e2b.gnn.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-07-15T00:00:00+00:00 List-Id: Andy says "This (the string message) sounds useful for debugging purposes, but it seems to add a level of complexity to exceptions that would hurt performance in a real time environment." Not particularly, but then performance of *raising* an exception is not something that can be counted on to be sparkling, in a real time environment or otherwise. For example on the RS6000 the ABI specifies a serial search of the code to find the exception table. The whole idea of exceptions in Ada is to make them efficient when they are NOT raised, if necessary at the expense of the behavior when they *are* raised.