From: Nicolas C. <war...@fr...> - 2003-06-25 11:13:56
|
Hi, This new version of Dynarray is far better that the previous ones (including the one I posted) : - using a raw ocaml block with a polymorphic type - doing unchecked field access (since we're checking -by hand-) - no problems with floats (but they are unboxed) - testing for resizing only when removing an element or when not enough space for adding. - correct a lot of bugs (including a infinite loop in exp_resizer when having a length of 0 !) Right now, I think the code is quite stable, although I can I have made some mistake here and there. Notice that I have removed a couple of *enum* functions since they need a little bit rethinking because the array can be muted after the enum is created : the ones currently defined are ok. Comments/bugs report (of course) apprecied. Nicolas Cannasse |