if not (Str.string_match valid_key_rex key 0) then
raise (Malformed_key key)
-let set' ?(replace=true) registry ~key ~value =
+let set' registry ~key ~value =
debug_print (lazy (sprintf "Setting %s = %s" key value));
key_is_valid key;
- if replace then
- Hashtbl.replace registry key value
- else
- Hashtbl.add registry key value
+ Hashtbl.add registry key value
let unset registry = Hashtbl.remove registry
let set_list registry marshaller ~key ~value =
List.iter
- (fun v -> set ~replace:false registry ~key ~value:(marshaller v))
+ (fun v -> set registry ~key ~value:(marshaller v))
value
type xml_tree =