From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr 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 10CEDD15E for ; Sun, 24 Jul 2005 22:50:03 +0200 (CEST) Received: from ash25e.internode.on.net (ash25e.internode.on.net [203.16.214.182]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j6OKo0xu021137 for ; Sun, 24 Jul 2005 22:50:02 +0200 Received: from rosella (ppp9-20.lns1.syd3.internode.on.net [59.167.9.20]) by ash25e.internode.on.net (8.12.9/8.12.6) with ESMTP id j6OKntjn029952; Mon, 25 Jul 2005 06:19:56 +0930 (CST) (envelope-from skaller@users.sourceforge.net) 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: <1122236998.9027.163.camel@localhost.localdomain> References: <200507241113.34003.Stephane.Glondu@crans.org> <1122230923.9027.84.camel@localhost.localdomain> <200507241214.39688.Stephane.Glondu@crans.org> <1122236998.9027.163.camel@localhost.localdomain> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-xXf42tLgzUcUVFYqv9ic" Date: Mon, 25 Jul 2005 06:49:56 +1000 Message-Id: <1122238196.9027.171.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 X-Miltered: at nez-perce with ID 42E3FEF8.002 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 'char:01 48,:98 wrote:01 wrote:01 sourceforge:01 sourceforge:01 string:03 meant:05 fails:06 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 --=-xXf42tLgzUcUVFYqv9ic Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2005-07-25 at 06:29 +1000, skaller wrote: > 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 inste= ad=20 > > of a string. >=20 > That fails to be 'efficient'. Would you use >=20 > char array option >=20 > instead of the existing Buffer??? Woops, of course I meant 'char option array' :) --=20 John Skaller --=-xXf42tLgzUcUVFYqv9ic 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/7zsRp8/9aGVGsRAr8HAJ45ixUvPQPLASPnVL0+oG/yZ1jmJQCfdaJS AeCLbc+tqhl1GHgx0iNNoa4= =kGMh -----END PGP SIGNATURE----- --=-xXf42tLgzUcUVFYqv9ic--