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 SAA05091; Tue, 18 Nov 2003 18:51:54 +0100 (MET) 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 SAA05198 for ; Tue, 18 Nov 2003 18:51:53 +0100 (MET) Received: from bob.west.spy.net (mail.west.spy.net [66.149.231.226]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAIHpp110980 for ; Tue, 18 Nov 2003 18:51:52 +0100 (MET) Received: from [10.9.254.240] (sjc-dist3-e3.2wire.com [63.203.253.2]) by bob.west.spy.net (Postfix) with ESMTP id 31BF65AFA; Tue, 18 Nov 2003 09:51:46 -0800 (PST) In-Reply-To: <1069163370.18363.1.camel@pelican> References: <1069092899.17437.58.camel@pelican> <3FB920CF.3070409@cs.caltech.edu> <1069163370.18363.1.camel@pelican> Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: Aleksey Nogin , Caml Mailing List From: Dustin Sallings Subject: Re: [Caml-list] GC and file descriptors Date: Tue, 18 Nov 2003 09:51:44 -0800 To: skaller@ozemail.com.au X-Mailer: Apple Mail (2.606) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 hashtbl:01 re-raise:01 descriptors:01 raises:01 nov:01 exception:02 exception:02 native:02 uncaught:02 stack:02 wrote:03 wrote:03 let:04 let:04 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Nov 18, 2003, at 5:49, skaller wrote: > On Tue, 2003-11-18 at 06:26, Aleksey Nogin wrote: >> On 17.11.2003 10:15, skaller wrote: >> >>> On thing is for sure .. I *hate* seeing >>> >>> "program terminated with uncaught "Not_found" exception" >>> >>> because I do hundreds of Hashtbl.find calls.... >> >> Well, OCAMLRUNPARAM=b is your friend ;-) > > That works with native code? More importantly (to me), is the stack preserved when you have to re-raise an exception?: let operate_on_file f fn = let ch = open_in fn in try f ch; close_in ch; with x -> close_in ch; raise x ;; When this thing raises Not_found, will I be able to tell why? -- Dustin Sallings ------------------- 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