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

NAME

6       Oo - Operations on objects
7

Module

9       Module   Oo
10

Documentation

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