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
30       val id : < .. > -> int
31
32       Return an integer identifying this object, unique for the current  exe‐
33       cution of the program. The generic comparison and hashing functions are
34       based on this integer. When an object is obtained by unmarshaling,  the
35       id is refreshed, and thus different from the original object. As a con‐
36       sequence, the internal invariants of data structures such as hash table
37       or  sets  containing  objects  are  broken  after unmarshaling the data
38       structures.
39
40
41
42
43
44OCamldoc                          2021-07-22                      Stdlib.Oo(3)
Impressum