From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA30759; Tue, 4 Jun 2002 23:01:17 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA30754 for caml-list@pauillac.inria.fr; Tue, 4 Jun 2002 23:01:16 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA27857 for ; Tue, 4 Jun 2002 19:45:16 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from dsf (adsl-63-196-84-93.dsl.sndg02.pacbell.net [63.196.84.93]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g54HjBH06475 for ; Tue, 4 Jun 2002 19:45:15 +0200 (MET DST) Received: from dsf by dsf with local (Exim 3.33 #1 (Debian)) id 17FIMj-0004Jq-00; Tue, 04 Jun 2002 10:45:05 -0700 To: caml-list@inria.fr Subject: [Caml-list] Exceptions and at_exit From: David Fox Date: 04 Jun 2002 10:45:05 -0700 Message-ID: <874rgjdjku.fsf@foxthompson.net> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I have some at_exit functions that must execute before my program exits, but I also want to see a traceback of any exception that occurs. Can I catch the exception, print a traceback like the one you get when you exit and then call exit? Or can I catch the exception, execute the at_exit functions, and then re-raise the exception? How *do* you re-raise an exception, anyway? Do you just catch the exception and raise it? ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners