Commit Graph

999 Commits

Author SHA1 Message Date
jlp765
c8954b2b34 tut1.rst: Slices indices explanation (#5569) 2017-03-22 01:04:37 +01:00
Dominik Picheta
b938a5b884 Cleaned up nep1 and simplified the style choices offered by it. 2017-03-16 22:34:49 +01:00
Dominik Picheta
19c436ab20 Update nep1 to show type keyword on its own line 2017-03-15 21:48:46 +01:00
Mark Summerfield
0510c0cece Mentioned that critbits is sorted... (#5524)
Having a lexicographically sorted collection is a big benefit (I asked GvR years ago to add one to Python but it was no then and seems to be no now!).
Anyone looking for a such a collection could easily miss the critbits model because very few people have heard of them (according to Wikipedia most people in a ration of approx 750:1 know them as radix trees: https://en.wikipedia.org/wiki/Talk%3ACrit_bit_tree).
2017-03-14 15:07:45 +01:00
Mark Summerfield
a330d967b5 Deleted parenthetical phrase (#5526)
I deleted it because it came across as arrogant. It is also contentious so IMO has no place in a manual.
2017-03-14 12:17:39 +01:00
mark-summerfield
9fda97b058 Fixed typo (#5508) 2017-03-12 20:01:01 +01:00
mark-summerfield
ef59b1a8eb Nicer English (#5513) 2017-03-12 19:55:14 +01:00
mark-summerfield
974b4d59b4 Nicer English (#5511) 2017-03-12 17:55:30 +01:00
mark-summerfield
c1ce20594e Nicer English (#5514) 2017-03-12 17:49:48 +01:00
mark-summerfield
639f786e5d Update tut1.rst (#5510)
In general: s/have to/must/g - but you can't do this mechanically because sometimes the must has to go back a word (e.g., line 519).

This looks really odd to me:
if thisIsaLongCondition() and
    thisIsAnotherLongCondition(1,
       2, 3, 4):
  x = true

I would have expected:
if thisIsaLongCondition() and
    thisIsAnotherLongCondition(
       1, 2, 3, 4):
  x = true

If the second form is valid and good Nim style then I suggest using it rather than the original. However, if the original is the preferred style then this should be mentioned in the text since it is unusual.

Since Nim is case-sensitive I think it is bad to write wrongly cased names, e.g., ``Bool`` is a built-in type on line 589. This isn't true since Bool isn't anything, but bool is. So in these cases I'd always reword to avoid this problem (and that's what I've done -- and it also avoids "bool. Bool" which was ugly).
2017-03-12 17:44:33 +01:00
mark-summerfield
3ab884a9e3 Suggested small change to code (#5509)
In a code example I think it best to either use full names (index, item) or abbreviated names where that's common (i, item) but not non-standard abbreviations (indx, itm). So I've changed it to index, item since it is a tutorial, although i, item would be just as good.
2017-03-12 17:40:14 +01:00
Araq
23a303c536 nimsuggest: update documentation 2017-03-08 12:44:57 +01:00
Andrea Griffini
c2630b338d Typo (#5495) 2017-03-07 10:01:07 +01:00
Araq
4f062c3be0 removed onThreadCreation; onThreadDestruction is now thread local 2017-02-26 20:42:19 +01:00
Fabian Keller
ce4587d7b7 Enabled explicitly unknown lock levels (#5409)
* enabled explicitly unknown lock levels
* allowing "unknown" as locks pragma
* added test case for locks pragma
* updated docs on locks pragma
2017-02-20 09:31:52 +01:00
Araq
8f426b974a new feature: .used pragma to suppress declared-but-not-used warning 2017-02-17 18:03:56 +01:00
Araq
5620e08563 minor documentation improvements 2017-02-17 00:00:39 +01:00
Anatoly Galiulin
6fa1dba515 Add `tearDownForeignThreadGc` function (#5369) 2017-02-13 13:37:20 +01:00
Yuriy Glukhov
eb0d510195 Removed $ from echo calls (#5368) 2017-02-10 16:25:22 +01:00
Araq
07562d6b99 website: http to https updates 2017-02-06 22:43:07 +01:00
Dominik Picheta
5565b9ef10 Fixes #5318. 2017-02-01 21:15:47 +01:00
Michael Jendrusch
536015ee7b Implement RFC #4873 improvements to JavaScript FFI (#5213) 2017-01-26 00:07:30 +01:00
Dominik Picheta
aeda6c517e Merge pull request #5262 from AvdN/patch-2
inconsistent insertion of space after colon
2017-01-21 20:49:41 +01:00
Anthon van der Neut
11d0265018 inconsistent insertion of space after colon 2017-01-21 19:16:02 +01:00
Anthon van der Neut
b3c170bdf3 failing trailing underscore, caused no hyperlink 2017-01-21 19:06:27 +01:00
Araq
ebcc88238e documented the new .gcsafe override pragma 2017-01-20 20:32:41 +01:00
Andreas Rumpf
915cc86f5d docs for the heap dump feature 2017-01-16 23:04:53 +01:00
Araq
65f3d9ea69 updated koch docs 2017-01-08 23:43:28 +01:00
Araq
e95c5c926c minor manual improvement; refs #5181 2017-01-07 21:43:42 +01:00
jlp765
86c73cdfc2 Further tutorial updates (#5176)
* tut1: added multiline comments
* tut2: replaced expr/stmt with untyped/typed
* added some more template/macro example
* remove immediate pragma from example
2017-01-07 09:18:45 +01:00
Andreas Rumpf
dcb609efe4 Merge pull request #5175 from jlp765/patch-1
Tutorial1 additions
2017-01-06 10:27:20 +01:00
Arne Döring
8282449aa1 updated doc for dynlib pragma 2017-01-04 14:05:22 +01:00
jlp765
4b32b2cef6 Tutorial1 additions
Add extra For Statement stuff
Add Distinct Types
2017-01-03 12:06:34 +10:00
Araq
763c783bdf added distros.nim stdlib module for NimScript/Nimble support 2016-12-31 02:04:27 +01:00
Andreas Rumpf
b013430929 reworked emit pragma; fixes #4730 2016-12-17 14:20:57 +01:00
Ruslan Mustakov
2c146445bc Added deques module, deprecating queues 2016-11-24 19:11:51 +07:00
Andreas Rumpf
01ae0d28d4 recursive modules are only detected to improve error messages 2016-11-24 12:27:21 +01:00
Araq
074f276c8a disallow recursive module dependencies 2016-11-23 23:23:31 +01:00
Andreas Rumpf
9a4f2225ce documents --excessiveStackTrace switch 2016-11-22 08:40:57 +01:00
Dominik Picheta
e6f6323e77 Fix inaccuracy surrounding Nimble in doc/nims.rst. 2016-11-21 20:55:37 +01:00
Andreas Rumpf
02a2180a6a first version of the new memory tracking feature 2016-11-21 12:10:44 +01:00
Andreas Rumpf
86b58e83ea Merge pull request #4994 from arnetheduck/nim-check-abi
add a simple sizeof checker to compare nim & c types
2016-11-08 14:08:36 +01:00
Araq
bec9c4be27 new dependency tracking for nimsuggest 2016-11-06 17:33:33 +01:00
Li Jie
3989d8fa79 typo 2016-11-05 00:22:51 -07:00
Jacek Sieka
fa86571448 abi check: prefer nim constant to enable, document 2016-11-03 22:30:00 +08:00
singularperturbation
456b3d3231 (minor) Doc change for #3130 2016-10-31 22:38:17 -05:00
Araq
8aecacc1df update the gc.rst document 2016-10-24 12:37:20 +02:00
Araq
9d2dfa9a99 further cleanups; refs #4934 2016-10-24 12:20:51 +02:00
Araq
ed9d0809ae docgen: PDFs and HTMLs finally are generated in their own respective directories 2016-10-24 11:55:23 +02:00
Andreas Rumpf
b3ef424b9c fixes #3485 2016-10-21 01:38:47 +02:00