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 LAA12155; Thu, 6 Nov 2003 11:39:34 +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 LAA12094 for ; Thu, 6 Nov 2003 11:39:33 +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 hA6AdW103822 for ; Thu, 6 Nov 2003 11:39:32 +0100 (MET) Received: from [192.168.1.196] (dhcp-196.west.spy.net [192.168.1.196]) by bob.west.spy.net (Postfix) with ESMTP id 5CA9459E0; Thu, 6 Nov 2003 02:39:29 -0800 (PST) In-Reply-To: <200311060447.12905.oleg_trott@columbia.edu> References: <979ADAF0-1034-11D8-ADB5-000393CFE6B8@spy.net> <200311060447.12905.oleg_trott@columbia.edu> Mime-Version: 1.0 (Apple Message framework v606) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <7FD65844-1045-11D8-ADB5-000393CFE6B8@spy.net> Content-Transfer-Encoding: 7bit Cc: Caml Mailing List From: Dustin Sallings Subject: Re: [Caml-list] exception handling questions Date: Thu, 6 Nov 2003 02:39:29 -0800 To: Oleg Trott X-Mailer: Apple Mail (2.606) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 oleg:01 printexc:01 toplevel:01 nov:01 exception:02 exception:02 string:03 string:03 similarly:03 wrote:03 wrote:03 exn:03 docs:03 pattern:06 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Nov 6, 2003, at 1:47, Oleg Trott wrote: > On Thursday 06 November 2003 03:38 am, Dustin Sallings wrote: >> Similarly, is there a way to print an exception at least like >> the >> toplevel does? I can catch any type of exception with the appropriate >> pattern, but I don't see how I can report it without expecting it. > > Printexc.to_string : exn -> string Thanks, that's exactly what I was looking for, yet somehow unable to see even though it's right there in the docs. -- 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