theolaurent / ocaml-reagent

An implementation of reagents for multicore OCaml
ISC License
4 stars 0 forks source link

Avoid Obj.magic #2

Closed kayceesrk closed 9 years ago

kayceesrk commented 9 years ago

Can we avoid Obj.magic https://github.com/theolaurent/ocaml-reagent/blob/master/core/MSQueue.ml#L15 by making the value an option type?

theolaurent commented 9 years ago

It would really add overhead... This value is really never going to be touched... And a dummy value is needed to initialize the queue.