ocamllabs / ocaml-effects

*DEPRECATED: See ocaml-multicore/ocaml-multicore* OCaml effects handlers
Other
27 stars 4 forks source link

Added continuation cloning #17

Closed kayceesrk closed 8 years ago

kayceesrk commented 8 years ago

Added support for cloning continuations. Continuations in OCaml are affine, and can be invoked at most once. Given a continuation k, Obj.clone k will return a copy of the continuation, which is also affine.