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 RAA16398 for caml-red; Tue, 17 Oct 2000 17:49:09 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA32293 for ; Mon, 16 Oct 2000 20:11:35 +0200 (MET DST) Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id e9GIBXf07249; Mon, 16 Oct 2000 20:11:34 +0200 (MET DST) Received: from checkerlap.d6.com ([64.163.212.38]) by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0G2J00DHOB3VLQ@mta5.snfc21.pbi.net>; Mon, 16 Oct 2000 10:55:08 -0700 (PDT) Date: Mon, 16 Oct 2000 10:57:40 -0700 From: Chris Hecker Subject: Re: Seeking pratical tutorial or examples. In-reply-to: <200010160749.JAA21632@pauillac.inria.fr> X-Sender: def6@shell16.ba.best.com To: Pierre Weis , fran@reyes.somos.net Cc: caml-list@inria.fr Message-id: <4.3.2.7.2.20001016105132.02d96bd0@shell16.ba.best.com> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Content-type: text/plain; charset="us-ascii" References: <200010160046.UAA57403@sanson.reyes.somos.net> Sender: weis@pauillac.inria.fr >> Isn't there a code snippet/samples page? I think the ocaml docs are good, but I must agree with the original poster about one thing: there is a lack of small example programs that are meant to be _compiled_. That is, most of the examples use interactive mode. A few examples in particular would be good: 1. a single file ocaml program, and exactly how it's compiled with ocamlc and ocamlopt 2. a two file example, and how it's compiled (the .mli thing confused me for a while) 3. an example that uses an external C function Since I wrote exactly these things, perhaps I should contribute them? I just found a lot of subtle things that were different between the interactive sessions and trying to write real code. Chris PS. Should the reply-to header on list messages be set to the list so threads don't accidently go private if somebody doesn't reply-all?