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 PAA03458; Fri, 27 Feb 2004 15:42:49 +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 PAA03015 for ; Fri, 27 Feb 2004 15:42:48 +0100 (MET) Received: from moby.atcorp.com (moby.atcorp.com [204.72.172.2]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1REgkae025101 for ; Fri, 27 Feb 2004 15:42:47 +0100 Received: from [192.168.0.121] (conger.atcorp.com [204.72.172.102]) by moby.atcorp.com (8.11.6/8.11.2) with ESMTP id i1REhvZ15628 for ; Fri, 27 Feb 2004 08:43:57 -0600 Mime-Version: 1.0 (Apple Message framework v612) Content-Transfer-Encoding: 7bit Message-Id: <3513E352-6933-11D8-9F7A-000393914EAA@atcorp.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: caml-list@inria.fr From: Eric Dahlman Subject: [Caml-list] Can I print like the toplevel? Date: Fri, 27 Feb 2004 08:42:46 -0600 X-Mailer: Apple Mail (2.612) X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; howdy:01 bug:01 ocaml:01 toplevel:01 classic:03 basically:06 loop:06 eric:06 function:09 function:09 print:11 print:11 returned:88 looked:12 nice:12 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Howdy, In tracking down a little bug yesterday it would have been really nice if I could have printed out a value like the top level prints out the value returned. Basically I want the "Print" function from the classic read-eval-print loop. Is such a function available and would I access it? I have done a bit of searching through the ocaml documentation and found things related to printing and pretty printing but nothing which really looked like it would work for this purpose. Thanks, -Eric ------------------- 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