Version française
Home     About     Download     Resources     Contact us    
Browse thread
Question about try.. with
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: christian konrad <konrad@i...>
Subject: Question about try.. with
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