1Stdlib.Oo(3)                     OCaml library                    Stdlib.Oo(3)
2
3
4

NAME

6       Stdlib.Oo - no description
7

Module

9       Module   Stdlib.Oo
10

Documentation

12       Module Oo
13        : (module Stdlib__Oo)
14
15
16
17
18
19
20
21
22       val copy : (< .. > as 'a) -> 'a
23
24
25       Oo.copy  o returns a copy of object o , that is a fresh object with the
26       same methods and instance variables as o .
27
28
29       Alert unsynchronized_access.  Unsynchronized accesses  to  mutable  ob‐
30       jects are a programming error.
31
32
33
34       val id : < .. > -> int
35
36       Return  an integer identifying this object, unique for the current exe‐
37       cution of the program. The generic comparison and hashing functions are
38       based  on this integer. When an object is obtained by unmarshaling, the
39       id is refreshed, and thus different from the original object. As a con‐
40       sequence, the internal invariants of data structures such as hash table
41       or sets containing objects  are  broken  after  unmarshaling  the  data
42       structures.
43
44
45
46
47
48OCamldoc                          2023-07-20                      Stdlib.Oo(3)
Impressum