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 87A02BBFB for ; Sun, 19 Jun 2005 23:32:47 +0200 (CEST) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j5JLWkfb025419 for ; Sun, 19 Jun 2005 23:32:47 +0200 Received: by rproxy.gmail.com with SMTP id a36so119347rnf for ; Sun, 19 Jun 2005 14:32:46 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ov2tgE1u5Iumqvfnmz1MBRou/+p8poCOjdKaaqSYQLfH+6j6auVgFul9qGqHyTYDJG5fycGMrDWhbYDBHBTEY7ZEMvUvoQnOuLWtzshvA52aF4tdQWswMrl+e5qYhxwqD3Y2YC647EZMp6PMOGbhxYH68vEDX1S2nmiLX/T8jow= Received: by 10.38.78.61 with SMTP id a61mr1924225rnb; Sun, 19 Jun 2005 14:32:46 -0700 (PDT) Received: by 10.38.209.44 with HTTP; Sun, 19 Jun 2005 14:32:46 -0700 (PDT) Message-ID: Date: Mon, 20 Jun 2005 09:32:46 +1200 From: Jonathan Roewen Reply-To: Jonathan Roewen To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] C++ templates to OCaml In-Reply-To: <1119175572.7402.1.camel@titania> 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 42B5E47E.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 ocaml:01 polymorphic:01 rewrite:01 functions:01 functions:01 modules:01 module:03 library:03 geometry:04 probably:05 i'd:05 i'd:05 classes:06 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: > I'd venture that you probably want functions and/or modules. Without any > detail, though, it's difficult to say more. Ok. Well, I want to rewrite the antigrain geometry library in OCaml (www.antigrain.com). They make extensive use of chaining together template classes. So, I'd use a module to represent each template class, and polymorphic functions?