From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 96C9ED15E for ; Sun, 24 Jul 2005 22:30:09 +0200 (CEST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j6OKU5cE028369 for ; Sun, 24 Jul 2005 22:30:07 +0200 Received: from rosella (ppp9-20.lns1.syd3.internode.on.net [59.167.9.20]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id j6OKTwW1057769; Mon, 25 Jul 2005 05:59:59 +0930 (CST) Subject: Re: [Caml-list] How to do this properly with OCaml? From: skaller To: Stephane Glondu Cc: caml-list@yquem.inria.fr In-Reply-To: <200507241214.39688.Stephane.Glondu@crans.org> References: <200507241113.34003.Stephane.Glondu@crans.org> <1122230923.9027.84.camel@localhost.localdomain> <200507241214.39688.Stephane.Glondu@crans.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-BfzNv5y3THP9ZBqMgIQR" Date: Mon, 25 Jul 2005 06:29:58 +1000 Message-Id: <1122236998.9027.163.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 X-Miltered: at concorde with ID 42E3FA4D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 buffer:01 buffer:01 datatype:01 char:01 48,:98 wrote:01 wrote:01 sourceforge:01 sourceforge:01 string:03 fails:06 mean:07 stephane:07 X-Attachments: type="application/pgp-signature" name="signature.asc" X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 --=-BfzNv5y3THP9ZBqMgIQR Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sun, 2005-07-24 at 12:14 -0700, Stephane Glondu wrote: > On Sunday 24 July 2005 11:48, skaller wrote: > > > I strongly disagree. Look at source code of buffer.ml: no Obj.magic. > > > What do you mean by "efficiently"? > > > > Buffer only works for characters. >=20 > You can make it work for any datatype by using an 'a array option instead= =20 > of a string. That fails to be 'efficient'. Would you use char array option instead of the existing Buffer??? --=20 John Skaller --=-BfzNv5y3THP9ZBqMgIQR Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBC4/pFsRp8/9aGVGsRAjsIAJsGXfZmTDzqUafmpv8PbEGNpLVItwCfeyY2 0IRFa03i3vpJ+EI7Qq8vAg0= =/LJC -----END PGP SIGNATURE----- --=-BfzNv5y3THP9ZBqMgIQR--