From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id CFB0ABC69 for ; Sun, 18 Feb 2007 00:40:57 +0100 (CET) Received: from mailout1.informatik.tu-muenchen.de (mailout1.informatik.tu-muenchen.de [131.159.0.18]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l1HNev3h007103 for ; Sun, 18 Feb 2007 00:40:57 +0100 Received: from [192.168.1.108] (c-69-253-130-19.hsd1.nj.comcast.net [69.253.130.19]) by mail.in.tum.de (Postfix) with ESMTP id 9A0FB2778 for ; Sun, 18 Feb 2007 00:40:56 +0100 (MET) Message-ID: <45D79283.8000101@in.tum.de> Date: Sat, 17 Feb 2007 18:40:51 -0500 From: christian konrad User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Question about try.. with Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new/sophie/sophos at mailrelay2.informatik.tu-muenchen.de X-Miltered: at concorde with ID 45D79289.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; infile:01 infile:01 cheers:01 rec:01 exception:01 output:02 string:02 let:03 let:03 chris:06 i'm:09 tum:11 doesn't:12 question:12 print:13 Hello list, I'm doing that: let _ = try let infile = open_in !filename in let rec readIn () = try (input_line infile) ^ readIn(); with ee -> ""; in print_string(readIn () ); "good"; with e -> "";; So why don't I get any output at all? Doesn't "with" erease the raised Exception? Thanks and cheers, chris