caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Question about try.. with
@ 2007-02-17 23:40 christian konrad
  2007-02-18  0:37 ` [Caml-list] " Jon Harrop
  2007-02-18  9:19 ` Jacques Garrigue
  0 siblings, 2 replies; 7+ messages in thread
From: christian konrad @ 2007-02-17 23:40 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-02-19  9:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-17 23:40 Question about try.. with christian konrad
2007-02-18  0:37 ` [Caml-list] " Jon Harrop
2007-02-18  1:01   ` Geoffrey Romer
2007-02-18  9:20     ` Christophe TROESTLER
2007-02-18  9:19 ` Jacques Garrigue
2007-02-19  0:11   ` christian konrad
2007-02-19  9:16     ` Andrej Bauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).