Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Possible bug in DynArray module from ExtLib
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] Possible bug in DynArray module from ExtLib
On Wed, 2007-04-04 at 00:40 +0200,
ls-ocaml-developer-2006@m-e-leypold.de wrote:

> > The exponential resizer probably exceeds Ocaml's array length limit,
> > while direct creation does not.
> 
> So a smarter resizer would be required: One which compares with the
> array length limit and satisfies the request with that if necessary
> and possible.

AFAIK DynArray has a resizer following my suggestion: you can
supply an arbitrary resizer function on construction, presumably with a
defaulted labelled argument (its the standard
library Buffer that doesn't have one).
I'm not sure, it's a while since I looked at ExtLib .. CC'd to
Nicolas who owns the library.

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net