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,7cbbcde0157485b2 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Problem w/ Win NT Apex or just me? Date: 1998/10/18 Message-ID: #1/1 X-Deja-AN: 402563943 References: <36278110.66641D91@stelnj.com> <36290663.18049121@SantaClara01.news.InterNex.Net> Newsgroups: comp.lang.ada X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Date: 1998-10-18T00:00:00+00:00 List-Id: Tom Moran wrote in message <36290663.18049121@SantaClara01.news.InterNex.Net>... >> exception >> when E: others => >> Ada.Exceptions.Raise_Exception >> (E => Ada.Exceptions.Exception_Identity (E), >> Message => "raised when attempting to open ... >Are you sure the open (actually Create) is the only possible source of >exceptions here? No, of course not. The exception handled (and re-raised) here can be from Open (with any other exception except Name_Error), from Create, Put_Line or Close. The purpose here was not to completely re-wrire his program -- so I kept its basic structure (including its structural flaws), and simply illustrated how to be a little more elegant with informing of exceptions. "Real" code I write would get a hard-copy desk check, rather than just looking at the code on the screen -- which is what happened here.