Commit Graph

1453 Commits

Author SHA1 Message Date
Andreas Rumpf
561092003d manual.rst: updates [backport] (#14445)
(cherry picked from commit 79e85cb0b5)
2020-06-08 14:13:50 +02:00
Danil Yarantsev
5b168d3f9b Fix some typos in the manual [backport] (#14399)
(cherry picked from commit 1450924b1e)
2020-05-20 15:35:05 +02:00
Kaushal Modi
c160b2161e [backport] tut1: Update the proc overloading examples (#13497) [skip ci]
(cherry picked from commit e4ed19c12f)
2020-04-14 07:07:20 +02:00
Jjp137
2304af294f lib.rst: add a link for jsconsole [backport] (#13383)
(cherry picked from commit 84a71dad87)
2020-02-19 19:09:03 +01:00
Juan Carlos
16eaebbf51 [backport] Documentation Fix #12251 (#13226) [ci skip]
(cherry picked from commit fbd7fe118c)
2020-01-23 07:54:14 +01:00
Andreas Rumpf
a3d5a3ca9b fixes #10665 (#13141) [backport]
(cherry picked from commit fadbd8f70d)
2020-01-16 07:38:12 +01:00
Siegfried Ehret
8b956dba09 Fix typo (#13015) [backport]
(cherry picked from commit a577a88c36)
2020-01-05 10:40:02 +01:00
Timothee Cour
7afe6b1f4b [ci skip] docfix .. < => ..< (#12981) [backport]
(cherry picked from commit 8c19372690)
2019-12-30 12:25:39 +01:00
Mark
512727d75e Manual update: custom exceptions (#12847) [backport]
Said that you can have custom exceptions and showed how to create and raise them.

(cherry picked from commit 73dd348ddd)
2019-12-10 16:10:51 +01:00
Elliot Waite
00408a4554 Removing the mention of using discard for block comments (#12837) [backport]
* Remove mention of using `discard` for block comments

* Add a 32x32 alternate favicon

(cherry picked from commit 5da27a891c)
2019-12-10 16:10:40 +01:00
Mark
09be379b91 deviated -> derived (#12846) [backport]
(cherry picked from commit 0ebc709037)
2019-12-10 16:10:33 +01:00
Mark
6f520fb6d9 deviated -> derived (#12845) [backport]
(cherry picked from commit 46144a31ab)
2019-12-10 16:09:51 +01:00
Brian Wignall
10935a71ed [backport] Fix spelling typos (#12755)
(cherry picked from commit a7aeabb9d2)
2019-12-10 15:55:19 +01:00
tauplus
c868f1ef67 Fix wrong section hierarchy in the manual (#12724) [backport]
(cherry picked from commit bfad0056ab)
2019-11-25 17:05:26 +01:00
Andreas Rumpf
4084ef19a3 conversions to unsigned numbers are not checked anymore (#12688) [backport]
* conversions to unsigned numbers are not checked anymore; implements / fixes https://github.com/nim-lang/RFCs/issues/175

* change the spec yet again to be less consistent but to make more sense; updated the changelog

(cherry picked from commit c98e0e22ad)
2019-11-21 17:31:35 +01:00
Andy Davidoff
0e1dd54fee add --clearNimblePath; fixes #12601 (#12609)
(cherry picked from commit 738c957e94)
2019-11-20 10:22:45 +01:00
Tor Arvid Lund
beaead0fd1 [backport] doc/tut3.rst: Fix typo in Introduction (#12607) [ci skip]
Derivative of `b*pow(x, 2)` is `2*b*x`, while old version had `2*a*x`

(cherry picked from commit 5ccbf7e3cf)
2019-11-06 15:54:39 +01:00
Federico Ceratto
763486a3aa [backport] Add links to packaging and distro pages (#12603) [ci skip]
(cherry picked from commit 59c212607e)
2019-11-06 15:54:39 +01:00
Clyybber
2a292c0e71 Refactor injectdestructors (#12295)
One improvement over #devel is visible in the transformation of getEnv. With this approach we move to result whenever possible.

(cherry picked from commit 5f5879dc4c)
2019-11-06 13:49:24 +01:00
Nindaleth
1d43c8620e fix several typos in documentation and comments (#12553)
(cherry picked from commit 34dbc5699e)
2019-10-30 10:38:25 +01:00
Anthon van der Neut
f991d2c1fd [backport] fix broken link to non-existing c2nim manual html, fixes #12537 [ci skip] (#12544)
(cherry picked from commit c58aa7705d)
2019-10-30 10:38:25 +01:00
Arne Döring
2a2a9110b2 integer literal documentation [ci skip] (#12513)
* integer literal documentation [ci skip]

* apply feedback [ci skip]

(cherry picked from commit 91af075244)
2019-10-30 10:38:25 +01:00
Jjp137
476d677c6f Remove sentences referring to the graphics module (#12522)
(cherry picked from commit 3a62cf29d8)
2019-10-30 10:38:25 +01:00
Jjp137
d1d8cd1000 Fix word wrapping
(cherry picked from commit 3ad48069d3)
2019-10-24 14:12:23 +02:00
Jjp137
eac5452082 manual.rst: remove unintended link
cast[T](0) is interpreted as a link to id 0 with text T, so escape
the opening parentheses to display the intended output.

(cherry picked from commit 59c1f7c87f)
2019-10-24 14:12:23 +02:00
Jjp137
80861998c7 koch.rst: remove link to nonexistent section
(cherry picked from commit 79aa58979c)
2019-10-24 14:12:23 +02:00
Jjp137
c1fd463834 Prefer relative links for Nim documentation
This is more friendly to those browsing the documentation without
a network connection. The nim-doc package in Debian allows this,
for example.

Also, the domain name being used was not consistent. It could have
been either nim-lang.org or nim-lang.github.io, and those reading
the stable docs could have found themselves suddenly reading the
devel docs instead.

(cherry picked from commit 72147c9ba4)
2019-10-24 14:12:12 +02:00
Jjp137
dedff71ca0 Fix many broken links
Note that contrary to what docgen.rst currently says, the ids have
to match exactly or else most web browsers will not jump to the
intended symbol.

(cherry picked from commit 93461aee34)
2019-10-24 14:10:46 +02:00
Federico Ceratto
cd60067638 [backport] Add link to posix_utils.html - related to #10723 (#12509)
(cherry picked from commit 9ac062b746)
2019-10-24 14:08:46 +02:00
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
Juan Carlos
f579d29b68 Fixes #8802 (#12439)
* Fix #8802

* Peer review feedbacks https://github.com/nim-lang/Nim/pull/12439#discussion_r335905397

(cherry picked from commit f5b4d9a2e5)
2019-10-21 07:32:38 +02:00
Juan Carlos
f79f7fed98 Fixes #10824 (#12437)
(cherry picked from commit 4d1f69c7d2)
2019-10-17 22:27:54 +02:00
Juan Carlos
e0c4015bbe Fix #10804 (#12438)
(cherry picked from commit 2cfd58de48)
2019-10-17 22:27:38 +02:00
awr1
813b371758 [backport] Mention "lambdas" and => in the manual (#12397) [ci skip]
(so that "lambda" can be CTRL+F'd)

(cherry picked from commit 3b1760df72)
2019-10-12 08:00:43 +02:00
pietroppeter
c8c9699850 [doc/tut1] removed discard discussion in comments (#12352)
(cherry picked from commit 89c37fada7)
2019-10-09 06:34:06 +02:00
Araq
95a655a975 different fix for #12279 [backport]
(cherry picked from commit c5a1149e00)
2019-09-30 18:43:35 +02:00
Andreas Rumpf
e0f2b3ba8f documentation updates 2019-09-21 11:53:09 +02:00
Araq
a404ec540a updated lib.rst and added some useful missing modules 2019-09-21 06:43:37 +02:00
Araq
1b20f768c7 lib.rst cleanups and reorderings 2019-09-21 06:43:37 +02:00
Arne Döring
38ab51c445 importjs symbol (#12218)
* importjs symbol
* importjs warning message, minor warning fixes
2019-09-20 20:26:30 +02:00
treeform
363d0ada50 Update Android and iOS cross compile docs. (#12215)
* Update Cross compilation, add noMain section.

* Small world update, note about XCode clean.
2019-09-19 13:22:07 +02:00
treeform
a948deebb3 Add --os:ios switch and docs. (#12204) 2019-09-18 20:03:51 +02:00
treeform
910ed5888e Add -d:androidNDK to fix echo on Android NDK builds. (#12203)
* Add -d:echoToAndroidLog to fix echo.

* Change to androidNDK and add docs.

* Some word changes to docs.
2019-09-17 23:00:06 +02:00
Andreas Rumpf
754531fff3 make --useVersion's documentation reflect reality 2019-09-16 23:54:31 +02:00
Andreas Rumpf
a5e2db2ac5 allows access to .compileTime vars at runtime (#12128) 2019-09-05 11:56:32 +02:00
Oscar Nihlgård
35268c500f Fix int literals and range interaction (#11197)
* Fix int literals and range interaction

* Fix test

* remove float range fix; update changelog
2019-08-31 19:34:08 +02:00
Clyybber
f9600b7207 Remove ENDB (#12095) 2019-08-31 07:44:53 +02:00
Andreas Rumpf
114da04cbb fixes #12029; finish the 'unused import' feature (#12064) 2019-08-27 19:18:56 +02:00
Araq
1ccff0324c manual: more precise rules about evaluation order 2019-08-27 12:13:06 +02:00
Andreas Rumpf
d8d2a9e985 manual: better documentation for implicit generics 2019-08-26 23:30:35 +02:00