Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
OCaml sync tool for Rex organizer
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2000-10-17 (15:49)
From: Chris Hecker <checker@d...>
Subject: Re: Seeking pratical tutorial or examples.

>> 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.


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?