File: Labels.3o

package info (click to toggle)
ocaml-odoc 2.1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,744 kB
  • sloc: ml: 37,049; makefile: 124; sh: 79
file content (156 lines) | stat: -rw-r--r-- 1,990 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156

.TH Labels 3 "" "Odoc" "OCaml Library"
.SH Name
Labels
.SH Synopsis
.sp 
.in 2
\fBModule Labels\fR
.in 
.sp 
.SH Documentation
.sp 
.nf 
.sp 
.in 3
\fB1 Attached to unit\fR
.in 
.sp 
.in 3
\fB2 Attached to nothing\fR
.in 
.sp 
\f[CB]module\fR A : \f[CB]sig\fR \.\.\. \f[CB]end\fR
.sp 
\f[CB]type\fR t
.fi 
.br 
.ti +2
Attached to type
.nf 
.sp 
\f[CB]val\fR f : t
.fi 
.br 
.ti +2
Attached to value
.nf 
.sp 
\f[CB]val\fR e : unit \f[CB]\->\fR t
.fi 
.br 
.ti +2
Attached to external
.nf 
.sp 
\f[CB]module\fR \f[CB]type\fR S = \f[CB]sig\fR
.br 
.ti +2
.sp 
.ti +2
\fB2\.1\.1 Attached to module type\fR
.sp 
.ti +2

.br 
\f[CB]end\fR
.sp 
\f[CB]class\fR  c : \f[CB]object\fR \.\.\. \f[CB]end\fR
.sp 
\f[CB]class\fR \f[CB]type\fR  cs = \f[CB]object\fR
.br 
.ti +2
.sp 
.ti +2
\fB2\.1\.2 Attached to class type\fR
.sp 
.ti +2

.br 
\f[CB]end\fR
.sp 
\f[CB]exception\fR \f[CB]E\fR
.fi 
.br 
.ti +2
Attached to exception
.nf 
.sp 
\f[CB]type\fR x = \.\.
.sp 
\f[CB]type\fR x += 
.br 
.ti +2
| \f[CB]X\fR
.br 
.fi 
.br 
.ti +2
Attached to extension
.nf 
.sp 
\f[CB]module\fR S := A
.fi 
.br 
.ti +2
Attached to module subst
.nf 
.sp 
\f[CB]type\fR s := t
.fi 
.br 
.ti +2
Attached to type subst
.nf 
.sp 
\f[CB]type\fR u = 
.br 
.ti +2
| \f[CB]A'\fR
.br 
.ti +4
(* Attached to constructor *)
.br 
.sp 
\f[CB]type\fR v = {
.br 
.ti +2
f : t;
.br 
.ti +4
(* Attached to field *)
.br 
}
.sp 
.fi 
Testing that labels can be referenced
.sp 
\(bu \f[CI]Attached to unit\fR
.br 
\(bu \f[CI]Attached to nothing\fR
.br 
\(bu \f[CI]Attached to module\fR
.br 
\(bu \f[CI]Attached to type\fR
.br 
\(bu \f[CI]Attached to value\fR
.br 
\(bu \f[CI]Attached to module type\fR
.br 
\(bu \f[CI]Attached to class\fR
.br 
\(bu \f[CI]Attached to class type\fR
.br 
\(bu \f[CI]Attached to exception\fR
.br 
\(bu \f[CI]Attached to extension\fR
.br 
\(bu \f[CI]Attached to module subst\fR
.br 
\(bu \f[CI]Attached to type subst\fR
.br 
\(bu \f[CI]Attached to constructor\fR
.br 
\(bu \f[CI]Attached to field\fR
.nf