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 TAA29124; Sun, 14 Jul 2002 19:35:20 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 TAA28876 for ; Sun, 14 Jul 2002 19:35:18 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g6EH9Mf13402 for ; Sun, 14 Jul 2002 19:10:08 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA28317 for caml-list@inria.fr; Sun, 14 Jul 2002 17:30:05 +0200 (MET DST) Date: Sun, 14 Jul 2002 17:30:05 +0200 From: Xavier Leroy To: caml-list@inria.fr Subject: Re: [Caml-list] Exceptions and at_exit Message-ID: <20020714173005.D28103@pauillac.inria.fr> References: <874rgjdjku.fsf@foxthompson.net> <87ele721sg.fsf@foxthompson.net> <20020713204429.GA15095@force.stwing.upenn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20020713204429.GA15095@force.stwing.upenn.edu>; from wlovas@stwing.upenn.edu on Sat, Jul 13, 2002 at 04:44:29PM -0400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > What if you did something like: > > try ... with > Failure msg as exn -> ; raise exn > > Would that leave the original traceback intact? Yes -- provided doesn't raise exceptions. The trace back mechanism relies on reference equality (==) on exception values: if the program raises an exception that is == to the latest exception raised, this is considered as a "re-raise" and adds to the traceback; otherwise, it's considered as an "initial raise" and a fresh traceback is started. - Xavier Leroy ------------------- 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