From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 081F5BBFB for ; Mon, 20 Jun 2005 00:36:38 +0200 (CEST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j5JMabvV031216 for ; Mon, 20 Jun 2005 00:36:37 +0200 Received: by wproxy.gmail.com with SMTP id 40so44786wri for ; Sun, 19 Jun 2005 15:36:36 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PkaTaI9h+nXtemjks9ZERx/+jpfz4m/2wgKsXTEYzJTk4EgYYs4+ypX4HI5n9CBoesUGZbIo8M9ucjymgpD6BzVu61RwIaRFWG9gmtzyZDNF3STsqfr6OIik8r50hSBjyZwcXW7GzXnhjoyzSgeKx32G9Um03grEthwLMuskXc4= Received: by 10.54.59.34 with SMTP id h34mr3081wra; Sun, 19 Jun 2005 15:34:40 -0700 (PDT) Received: by 10.54.17.36 with HTTP; Sun, 19 Jun 2005 15:34:40 -0700 (PDT) Message-ID: <9e008fda050619153462436239@mail.gmail.com> Date: Sun, 19 Jun 2005 23:34:40 +0100 From: Benjamin Geer Reply-To: Benjamin Geer To: Jonathan Roewen Subject: Re: [Caml-list] C++ templates to OCaml Cc: caml-list@yquem.inria.fr In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1119175572.7402.1.camel@titania> X-Miltered: at nez-perce with ID 42B5F375.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 functors:01 oreilly-book:01 wrote:01 polymorphic:01 functions:01 benjamin:01 benjamin:01 modules:01 caml:02 caml:02 chapters:02 objective:02 ben:02 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.2 X-Spam-Level: On 19/06/05, Jonathan Roewen wrote: > So, I'd use a module to represent each template > class, and polymorphic functions? The book _Developing Applications with Objective Caml_ gives a good comparison of modules, functors and classes, which might help you find the best approach for your library. See chapters 14, 15 and 16: http://caml.inria.fr/pub/docs/oreilly-book/html/index.html Ben