Files
Nim/doc
UNIcodeX bf047d6ef1 [backport] Clarifies experimental / parallel example on manual.rst (#12472)
* Clarifies experimental / parallel on manual.rst

Details:
Calling `useParallel()` in example fails with compiler error
  Error: 'parallel' section without 'spawn'

Adding `spawn` causes error:
  Error: internal error: (filename: "ccgexprs.nim", line: 1032, column: 17)
  No stack traceback available
  To create a stacktrace, rerun compilation with ./koch temp c <file>

Therefore a separate proc, `threadedEcho`, is added for the echo'ing
of the string, which allows the example to build, however, `sync()`
must be added so that the "echo in parallel" strings will actually
be shown on the terminal. Otherwise, the program will spawn of the
threads and exit before they can return to the main thread.

* Fixes and clarifies example for threading in manual.rst

Issue:
Calling useParallel() in example failed with compiler error
`Error: 'parallel' section without 'spawn'`

Adding spawn yielded compiler error:
```bash
Error: internal error: (filename: "ccgexprs.nim", line: 1032, column: 17)
No stack traceback available
To create a stacktrace, rerun compilation with ./koch temp c
```

Proposed Solution:
- Separate proc, threadedEcho, is added for the echo'ing
  of the string, which allows the example to build
- Added the thread number so that it can demonstrate that sometimes
  threads which were started sooner, come back after threads which
  were started later.

(cherry picked from commit d731646106)
2019-10-24 14:08:46 +02:00
..
2018-07-11 08:52:09 +02:00
2019-09-21 11:53:09 +02:00
2019-06-10 10:53:34 +02:00
2018-11-19 09:22:21 +01:00
2019-02-05 17:45:30 -08:00
2014-08-28 22:36:14 +02:00
2018-11-14 08:27:48 +01:00
2019-10-21 07:32:38 +02:00
2019-06-18 12:17:26 +02:00
2018-10-12 17:27:47 +02:00
2019-09-30 18:43:35 +02:00
2018-07-09 12:35:25 +02:00
2019-09-21 11:53:09 +02:00
2016-10-24 12:20:51 +02:00
2019-01-25 08:34:02 +01:00
2019-01-30 19:49:09 +01:00
2015-09-20 18:16:51 -07:00
2019-08-21 00:04:01 +02:00

============================
Nim's documenation system
============================

This folder contains Nim's documentation. The documentation
is written in a format called *reStructuredText*, a markup language that reads
like ASCII and can be converted to HTML automatically!