summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2014-08-05 16:44:27 +0200
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2014-08-05 16:44:27 +0200
commit8aa0be82d471c3ec24b8e798ea65748c67b0c5ce (patch)
treec3cd7a95a2d92af2eefb03342b3d9a4a37ffae5d
parent688db0f70a08960e4785cc3807a3b97f706f877d (diff)
downloadNim-8aa0be82d471c3ec24b8e798ea65748c67b0c5ce.tar.gz
Improves tut2.txt with more hyperlinks.
-rw-r--r--doc/tut2.txt21
1 files changed, 12 insertions, 9 deletions
diff --git a/doc/tut2.txt b/doc/tut2.txt
index 1e23618e0..295d2e046 100644
--- a/doc/tut2.txt
+++ b/doc/tut2.txt
@@ -23,11 +23,13 @@ features.**
 
 Pragmas
 =======
+
 Pragmas are Nimrod's method to give the compiler additional information/
-commands without introducing a massive number of new keywords. Pragmas are 
-enclosed in the special ``{.`` and ``.}`` curly dot brackets. This tutorial 
-does not cover pragmas. See the `manual <manual.html>`_ 
-or `user guide <nimrodc.html>`_ for a description of the available pragmas.
+commands without introducing a massive number of new keywords. Pragmas are
+enclosed in the special ``{.`` and ``.}`` curly dot brackets. This tutorial
+does not cover pragmas. See the `manual <manual.html#pragmas>`_ or `user guide
+<nimrodc.html#additional-features>`_ for a description of the available
+pragmas.
 
 
 Object Oriented Programming
@@ -421,9 +423,10 @@ the rest of the procedure - that is not within a ``finally`` clause -
 is not executed (if an exception occurs).
 
 If you need to *access* the actual exception object or message inside an
-``except`` branch you can use the getCurrentException() and
-getCurrentExceptionMsg() procs from the `system <system.html>`_ module.
-Example:
+``except`` branch you can use the `getCurrentException()
+<system.html#getCurrentException>`_ and `getCurrentExceptionMsg()
+<system.html#getCurrentExceptionMsg>`_ procs from the `system <system.html>`_
+module.  Example:
 
 .. code-block:: nimrod
   try:
@@ -663,8 +666,8 @@ statement:
   declareInNewScope(b, int)
   b = 42  # does not work, `b` is unknown
 
-(The manual explains why the ``immediate`` pragma is needed for these 
-templates.)
+(The `manual explains <manual.html#ordinary-vs-immediate-templates>`_  why the
+``immediate`` pragma is needed for these templates.)
 
 If there is a ``stmt`` parameter it should be the last in the template
 declaration. The reason is that statements can be passed to a template
200 committer Andreas Rumpf <rumpf_a@web.de> 2018-05-27 11:10:56 +0200 remove more global variables in the Nim compiler' href='/ahoang/Nim/commit/compiler/ropes.nim?h=devel&id=669a5644926290e19a3fc32fd319c056183ff2d9'>669a56449 ^
e25474154 ^
86556ebfd ^

959e370ae ^
a9ef5bf45 ^
a541be893 ^
f530bbd63 ^
e25474154 ^
a9ef5bf45 ^


dae545094 ^


a541be893 ^
a9ef5bf45 ^
ff914b89d ^
e25474154 ^
dae545094 ^
a541be893 ^
dae545094 ^
e25474154 ^
7e747d11c ^
dae545094 ^
76235348f ^
c86b1fbca ^


e25474154 ^
c86b1fbca ^


c67520a7c ^
a9ef5bf45 ^
a541be893 ^
e25474154 ^
a541be893 ^
e25474154 ^






a541be893 ^
fe750a5cf ^
f644e3079 ^

a42545ea3 ^
f644e3079 ^
a9ef5bf45 ^
c86b1fbca ^








fe750a5cf ^
a541be893 ^
a9ef5bf45 ^
ff914b89d ^
959e370ae ^
e25474154 ^
fe750a5cf ^
959e370ae ^
438703f59 ^
e25474154 ^
a9ef5bf45 ^
ff914b89d ^
bcdb5b083 ^


a9ef5bf45 ^
ff914b89d ^
bcdb5b083 ^

a9ef5bf45 ^
80ee28daf ^





dae545094 ^
80ee28daf ^


a9ef5bf45 ^
ff914b89d ^
bcdb5b083 ^
80ee28daf ^
a9ef5bf45 ^
ff914b89d ^
bcdb5b083 ^
80ee28daf ^
a9ef5bf45 ^
ff914b89d ^
7e747d11c ^
80ee28daf ^
a9ef5bf45 ^
ff914b89d ^
80ee28daf ^

a9ef5bf45 ^
ff914b89d ^
80ee28daf ^

ff914b89d ^





f89218c8b ^

ff914b89d ^


ff914b89d ^









e25474154 ^
86556ebfd ^
2f43fdb83 ^
86556ebfd ^
92b8fac94 ^
e25474154 ^
b2c7910fb ^
869a5aa90 ^
b2c7910fb ^
e25474154 ^
ff914b89d ^



7e747d11c ^
ff914b89d ^


7e747d11c ^
ff914b89d ^



abb05ab64 ^
064417fc5 ^
e25474154 ^
064417fc5 ^
7e747d11c ^
a541be893 ^
e25474154 ^

a541be893 ^
7e747d11c ^
e25474154 ^
a541be893 ^
e25474154 ^
7e747d11c ^
e25474154 ^
a541be893 ^
064417fc5 ^
a541be893 ^
91f42a294 ^
e25474154 ^
7e0540ed8 ^
e25474154 ^
d0edb1826 ^
b2c7910fb ^
b0c11d3ef ^
7e747d11c ^
aafbe5c86 ^


0f131b9f4 ^
aafbe5c86 ^


0f131b9f4 ^
b2c7910fb ^

aafbe5c86 ^

b2c7910fb ^
aafbe5c86 ^
7e747d11c ^
0b197ade6 ^
7e747d11c ^
91f42a294 ^
fe750a5cf ^
7e747d11c ^
e25474154 ^
d0edb1826 ^
b2c7910fb ^
064417fc5 ^
7e747d11c ^
fe750a5cf ^

a541be893 ^
7e747d11c ^
438703f59 ^
e25474154 ^
abb05ab64 ^



ff914b89d ^
7e747d11c ^
91f42a294 ^
027f30610 ^
39049e151 ^
027f30610 ^

a9ef5bf45 ^
027f30610 ^

39049e151 ^
027f30610 ^

f644e3079 ^
a541be893 ^
e25474154 ^

ff914b89d ^

d68181246 ^
ff914b89d ^


ff3cf001a ^

ff914b89d ^


7e747d11c ^

171996465 ^



ff3cf001a ^
171996465 ^


7e747d11c ^
ff914b89d ^

171996465 ^

ff914b89d ^
171996465 ^
171996465 ^
ff3cf001a ^

171996465 ^
86556ebfd ^
ff914b89d ^

171996465 ^
86556ebfd ^
a541be893 ^
171996465 ^

e25474154 ^
86556ebfd ^
e25474154 ^
171996465 ^
b2c7910fb ^
a541be893 ^
e25474154 ^
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338