ocaml-containers icon indicating copy to clipboard operation
ocaml-containers copied to clipboard

Semantics of CCBV.resize

Open favonia opened this issue 4 years ago • 0 comments

I am confused by the current code.

  1. Should this be true or false? Current, it returns true.
let bv = CCBV.create ~size:3 true in CCBV.resize bv 1; CCBV.get bv 2
  1. Should this be exception-free? Current, it raises an exception.
let bv = CCBV.create ~size:1 true in CCBV.resize bv 0

favonia avatar May 23 '21 03:05 favonia