Rich Neswold <rich.nesw...@gmail.com> writes: > On Thu, Jul 15, 2010 at 1:24 PM, Goswin von Brederlow <goswin-...@web.de> > wrote: > > It is too bad I don't want to learn CML but use Ocaml. The CML examples > from the book don't translate into ocaml since the interface is just a > little bit different and those differences are what throws me off. > >  > > So could you give a short example? E.g. the merge sort from the book. > > > You're right: OCaml's syntax differs enough from the text that it's annoying > to > cut-n-paste the examples. Fortunately most example are a few lines of code, so > I didn't realize how difficult it could be on a larger example (like the merge > sort example.) > > Attached is my translation of the mergeSort from the book. You get to play > with > it and see if it works  :)
Thanks. That is about what I got so I do seem to understand the differences right. For my use case this would then come down to implement solution 3 with channels instead of my own queues. Well, channels are thread safe queues just by another name. I think I see now how they make the code simpler to write. MfG Goswin _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs