[zeromq-dev] Introducing Caravan: Simple, Faithful ZMQ-Bindings for Objective Caml (Pedro Borges)

Guillaume Yziquel guillaume.yziquel at citycable.ch
Mon Apr 4 12:38:02 CEST 2011


Le Monday 04 Apr 2011 à 11:11:33 (+0100), Pedro Borges a écrit :
> On Mon, Apr 4, 2011 at 3:24 AM, Brian Ledger <bpl29 at cornell.edu> wrote:
> 
> >> Well using Uint keeps the user from passing negative arguments
> >> plus respects the type of the original options so I thought it
> >> was necessary. Why do you think it is unnecessary?
> >
> > Ocaml's implementation of the Int64 type explicitly allocates 64 bits, so
> > that an Int64 can denote any unsigned integer value and more.  Testing for
> > negative integers is accomplished via the set_uint64 function, which will
> > raise an exception for negative integer values.
> 
> But then the full uint64 number range isn't available.

It's available from C, but misinterpreted in OCaml.

-- 
     Guillaume Yziquel



More information about the zeromq-dev mailing list