We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d57a66 commit 4adc84cCopy full SHA for 4adc84c
1 file changed
src/domain.ocaml4.ml
@@ -52,14 +52,14 @@ module Domain = struct
52
53
module DLS : DLSS = struct
54
type 'a key = {
55
- value: 'a option ref;
+ mutable value: 'a option;
56
initialiser: unit -> 'a;
57
}
58
59
let new_key ?split_from_parent initialiser =
60
{ value = None; initialiser }
61
62
- let get k =
+ let get (k: 'a key) =
63
match k.value with
64
| Some v -> v
65
| None ->
0 commit comments