1 2 3 4 5 6 7 8 9 10 11 12 13 14
(* SPDX-License-Identifier: AGPL-3.0-or-later *)
(* Copyright © 2021-2024 OCamlPro *)
(* Written by the Owi programmers *)
(* TODO: mut and typ are only used at link time but not at runtime, it could be possible to remove them with some effort! *)
type t =
{ mutable value : Concrete_value.t
; mut : Text.mut
; typ : Text.val_type
}
let value g = g.value
let set_value g v = g.value <- v