Commit Graph

1015 Commits

Author SHA1 Message Date
Zahary Karadjov
f162214d5d object construction: test cases and manual additions 2017-04-06 00:46:18 +03:00
Zahary Karadjov
02243410fd News items for previous commit 2017-04-06 00:46:18 +03:00
Andreas Rumpf
e21ca54b11 assignments support ': stmtList' like let/var do 2017-04-04 12:20:43 +02:00
Andreas Rumpf
08f5087d2c remove the need for the .procvar annotation 2017-04-03 16:35:41 +02:00
Andreas Rumpf
cab2ce7e87 update grammar.txt 2017-04-02 23:42:53 +02:00
Andreas Rumpf
f520dfbfab remove en-dash from the language 2017-04-02 23:41:29 +02:00
Emery Hemingway
7e351fc7fa support for the Genode OS framework (#5560) 2017-03-31 23:13:06 +02:00
Andreas Rumpf
98c6af780e grammar update 2017-03-31 17:02:14 +02:00
Zahary Karadjov
a74ad869e9 requested code review changes 2017-03-29 16:15:30 +03:00
Zahary Karadjov
01207b6cfd restore the T1-T9 types and clarify how generic concepts work 2017-03-28 14:19:32 +03:00
Zahary Karadjov
9574d318ae use lower-case proc names 2017-03-24 17:03:55 +02:00
Zahary Karadjov
cbf66e99a8 Working test cases for the sophisticated matrix library example from the manual
Fixed the dot operator when used within return types (see tgenericdotrettype)
Fixed the matching of generic concepts aliases used with the implicit generics style
2017-03-24 16:59:47 +02:00
Zahary Karadjov
0f2c4be129 infer static parameters even when more complicated arithmetic is involved 2017-03-24 16:58:15 +02:00
Zahary Karadjov
77a4512ae8 some revisions to the Concepts and VTable types specs 2017-03-24 16:58:15 +02:00
Zahary Karadjov
a90c4c4d7e kill the reportConceptFailures options as it will be replaced by the .explain. pragma 2017-03-24 16:58:15 +02:00
Zahary Karadjov
19918ad96f future manual additions for the full concept spec I'm aiming to implement 2017-03-24 16:58:15 +02:00
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