From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id oBSNR7o6001624 for ; Wed, 29 Dec 2010 00:27:07 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsEAAIsBGk1KfVIukGdsb2JhbACkKggVAQEBAQkJDAcRBCClKol3ghiEfy6IEQEBAwWFRQSLBIMdaQ X-IronPort-AV: E=Sophos;i="4.60,241,1291590000"; d="scan'208";a="84839559" Received: from mail-ww0-f46.google.com ([74.125.82.46]) by mail2-smtp-roc.national.inria.fr with ESMTP; 29 Dec 2010 00:27:00 +0100 Received: by wwj40 with SMTP id 40so10087001wwj.3 for ; Tue, 28 Dec 2010 15:26:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:x-priority:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=qszo5ejbUN2PaM6RPL+VAaePcYx3uylKHCe39xVa4Nc=; b=U/uQ62Hq+ZlJwN0VlKCvRs+adlngR/9RF9E7MQDtnnk7zik+jhaizFce842L7+PO1O uflJmv3T/STP8mPv61n/t2FrLHUGn4oIo7cH41XecS6gDT4JaVXh7xYuvOWcv2BR1Ev2 a+xkOJCn6MYrQhGo3ZMVm3wGq/S0cLkj93+Ms= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:x-priority:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; b=NVxUBCkklI7bGUvLzWiZYPtU+nVqUVjrpBCvoSEPNyCt20iJEmtML6HP3cY8/EM8XC ywLmY+QnEyfNFi+4oYFgPmiK+KTJxs9oR2eUWKzMC2FtL5jxvgwtm7C4JozcpMIJSy+s yPQiLYAtKSCqdnR8JpBchvRYxL2m4YOBtA4OU= Received: by 10.216.154.8 with SMTP id g8mr11745867wek.12.1293578819662; Tue, 28 Dec 2010 15:26:59 -0800 (PST) Received: from [192.168.0.196] ([95.60.213.7]) by mx.google.com with ESMTPS id j58sm6784699wes.45.2010.12.28.15.26.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 28 Dec 2010 15:26:58 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: Joel Reymont X-Priority: 3 In-Reply-To: <-7059986755517193363@unknownmsgid> Date: Tue, 28 Dec 2010 23:26:55 +0000 Cc: caml-list@yquem.inria.fr Message-Id: References: <-7059986755517193363@unknownmsgid> To: Jacques Garrigue X-Mailer: Apple Mail (2.1082) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id oBSNR7o6001624 Subject: Re: [Caml-list] c++ class to ocaml class or module? On Dec 28, 2010, at 11:15 PM, Jacques Garrigue wrote: > I would only suggest making the extra effort of combining these > functions into classes if sutyping is actively used. This is a large surface C++ API where I need to subclass to provide callbacks. For example, the initialization arguments to the "engine" class are grouped into a "parameters" class so I need to create the parameters object in C++ and then individually set the members. --- http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont