From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA19025 for caml-red; Tue, 14 Nov 2000 15:18:17 +0100 (MET) 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 GAA21868 for ; Tue, 14 Nov 2000 06:10:29 +0100 (MET) Received: from cis.ohio-state.edu (mail.cis.ohio-state.edu [164.107.115.5]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id eAE5ASj29005 for ; Tue, 14 Nov 2000 06:10:29 +0100 (MET) Received: from meta.verbum.org (root@gold.cis.ohio-state.edu [164.107.112.16]) by cis.ohio-state.edu (8.9.1/8.9.1) with ESMTP id AAA04633 for ; Tue, 14 Nov 2000 00:10:27 -0500 (EST) Received: by meta.verbum.org (Postfix (Debian/GNU), from userid 1000) id 0326A1030E; Tue, 14 Nov 2000 00:07:58 -0500 (EST) To: caml-list@inria.fr Subject: equivalent of Lisp's `print'? X-Attribution: Colin Organization: The Ohio State University Dept. of Computer and Info. Science Original-Sender: walters+s@cis.ohio-state.edu From: Colin Walters Date: 14 Nov 2000 00:07:58 -0500 Message-ID: <87g0kv16q9.church.of.emacs@meta.verbum.org> User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: weis@pauillac.inria.fr Hello, A quick newbie question: Is there a way I can print any data type, like ones I have defined myself? Something like Lisp's `print' function would be great. The OCaml compiler does this when you type expressions at the toplevel; can I access this from my code? By the way; I'm surprised that the Caml Hump wasn't prominently listed on the OCaml web page! I think libraries and utility software are an important part of a language's success. For example, the OcamlMakefile saved me a fair amount of time.