module Value:sig
..end
Obj
module)
This module builds upon the Obj
module. It provides the Value.tag
and Value.custom
types to provide better dispatch on the internal
type of any OCaml value. It also provides functions to inspect the
representation of values, and to generate human-readable
descriptions and mnemonics for use by the Dot
and Sexpr
module.
typet =
Obj.t
Value.t
is the same as Obj.t
type
tag =
| |
Lazy |
| |
Closure |
| |
Object |
| |
Infix |
| |
Forward |
| |
Block |
| |
Abstract |
| |
String |
| |
Double |
| |
Double_array |
| |
Custom |
| |
Int |
| |
Out_of_heap |
| |
Unaligned |
type
custom =
| |
Custom_nativeint of |
| |
Custom_int32 of |
| |
Custom_int64 of |
| |
Custom_bigarray |
| |
Custom_channel |
| |
Custom_unknown |
| |
Not_custom |
module TagSet:sig
..end
val equal : t -> t -> bool
val hash : t -> int
val bits : t -> nativeint
val bits_to_string : ?base:[ `Bin | `Dec | `Hex ] -> t -> string
val tag : t -> tag
val heap_words : t -> int
val is_in_heap : t -> bool
Int
, Out_of_heap
and Unaligned
are out.val custom_identifier : t -> string
val custom_value : t -> custom
val custom_ops_info : t -> string
E.g. FCHSD, FC---, -----
val custom_is_int : t -> bool
int32
, int64
or nativeint
?val custom_has_finalize : t -> bool
val custom_has_compare : t -> bool
val custom_has_hash : t -> bool
val custom_has_serialize : t -> bool
val custom_has_deserialize : t -> bool
val mnemonic : t -> string
val mnemonic_unknown : string
val abbrev : t -> string
val description : t -> string