Closed kayceesrk closed 9 years ago
Humm.. There is no more ways to produce values of type CAS.t...
I mean except for those in the module Sugar, but this module is supposed to be facultative.
The CAS constructor was actually meant to be exposed.
Or we could have a create function of type 'a ref -> 'a updt -> t
. But that would be the same, wouldn't be ?
Better to expose a function cas : 'a ref -> 'a updt -> t
than the constructor. Exposing the constructor breaks abstraction.
Ok. Could you just add it?
Added.
Simple fix to avoid exposing the constructor out of the CAS module.