Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] GC and file descriptors
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Dustin Sallings <dustin@s...>
Subject: Re: [Caml-list] GC and file descriptors

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