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.ttype 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 -> boolval hash : t -> intval bits : t -> nativeintval bits_to_string : ?base:[ `Bin | `Dec | `Hex ] -> t -> stringval tag : t -> tagval heap_words : t -> intval is_in_heap : t -> boolInt, Out_of_heap and Unaligned are out.val custom_identifier : t -> stringval custom_value : t -> customval custom_ops_info : t -> string
E.g. FCHSD, FC---, -----
val custom_is_int : t -> boolint32, int64 or nativeint?val custom_has_finalize : t -> boolval custom_has_compare : t -> boolval custom_has_hash : t -> boolval custom_has_serialize : t -> boolval custom_has_deserialize : t -> boolval mnemonic : t -> stringval mnemonic_unknown : stringval abbrev : t -> stringval description : t -> string