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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8af02d07133bfac9,start X-Google-Attributes: gid103376,public From: Sandro Binetti Subject: Exception scope and handling Date: 2000/11/13 Message-ID: <8uo87r$ato$1@nnrp1.deja.com>#1/1 X-Deja-AN: 692975787 X-Http-Proxy: 1.0 ssi21:3128 (Squid/2.3.STABLE4), 1.0 x61.deja.com:80 (Squid/1.1.22) for client 172.27.66.83, 195.223.220.65 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Nov 13 08:20:13 2000 GMT X-MyDeja-Info: XMYDJUIDsandrobinetti Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) Date: 2000-11-13T00:00:00+00:00 List-Id: There's something that's not clear, or, better, I can't understand about exception scope and handling. Suppose to declarate an exception inside the declarative region of a procedure, and handle it at the end of the body of the procedure. What's the meaning of re-raising this exception outside this body? Take a simple example: procedure PROC1 is procedure PROC2 is FOO:EXCEPTION; begin .... .... EXCEPTION when FOO => handle_it; raise; -- ???? what's the meaning of this end proc2; begin ... ... ... -- what kind of object is FOO here? EXCEPTION when others => -- ???? why coul'd I handle FOO here, even if I don't -- know anything about it? end proc1; -- Ciao, Sandro Sent via Deja.com http://www.deja.com/ Before you buy.