Commit Graph

12160 Commits

Author SHA1 Message Date
Timothee Cour
50229293ae doc: fix path to $HOME/.config/nim.cfg to work on POSIX (not just unix but also osx) (#7421) 2018-03-27 09:45:43 +02:00
Abhishek
23064bba3a fix small typo in the documentation (#7411) 2018-03-26 09:48:39 +02:00
Araq
1d9343080d added toOpenArray builtin for zero-copy slices; syntax sugar yet to come 2018-03-24 20:26:34 +01:00
zah
121b9e26fb Static[T] fixes (#7333)
* fix the usage of unresolved static[T] parameters in proc signatures
* fix tsametype and tmacrogenerics
* Allow creating composite type classes with concepts and using them in type signatures
* Allow integers to be used in ident concatenations
* Support using imported C++ generic types in proc signatures
* fixes #7230
* closes #7379
* re-enable some metatype tests
2018-03-24 15:28:09 +01:00
Andreas Rumpf
2e7a0e1cdd make tests green again 2018-03-24 11:30:29 +01:00
Andreas Rumpf
299e944cf7 fixes the 'var T' checking 2018-03-24 10:10:28 +01:00
Andreas Rumpf
3be4f9111c enforce 'var T' produces a view into the first parameter; refs #7373 2018-03-24 09:41:04 +01:00
Andreas Rumpf
6f747674be more checking for 'var T' as return type; refs #7373 2018-03-24 08:37:09 +01:00
Andreas Rumpf
88d8a14fb4 mysql.nim: fixes how the DLL version loading works 2018-03-24 08:37:09 +01:00
cooldome
e2c2ae8e7e fixes #7392 (#7395) 2018-03-23 13:28:22 +01:00
Araq
a0b547001b nimsuggest: do not execute the .nims file when requested to auto-complete it 2018-03-22 15:51:23 +01:00
Araq
7e835a84b8 further planning of Nim is done via RFCs; no todo.txt anymore 2018-03-22 15:16:48 +01:00
Dominik Picheta
43c636c449 Merge pull request #7388 from euantorano/patch-1
Add an example to the `dynlib` module doc
2018-03-21 12:23:44 +00:00
Euan T
9e0e099cc0 Add an example to the dynlib module doc
Following a quesiton on Gitter about loading libraries dynamically based upon some runtime parameter, I noticed there's no documentation on the `dynlib` module for something that's quite common.
2018-03-21 10:30:58 +00:00
Solitude
fc22627dbd libssl.so.44 fix (#7358) 2018-03-20 11:15:21 +01:00
cooldome
23230572e2 Fixes #7363 (#7371) 2018-03-20 11:14:47 +01:00
Dominik Picheta
a581118d0e Merge pull request #7368 from GULPF/patch-2
Remove basic2d & 3d from module list
2018-03-19 20:43:46 +00:00
Araq
d738ed9c92 better error messages for illegal captures 2018-03-19 19:39:44 +01:00
Araq
e83bce3f13 disable flaky fragmenation test for AppVeyor 2018-03-19 17:42:52 +01:00
Araq
8831e654c6 fixes #7364 2018-03-19 17:42:05 +01:00
Oscar Nihlgård
d8108d0449 Remove basic2d & 3d from module list
`basic2d` and `basic3d` has been moved to nimble packages
2018-03-19 15:52:45 +01:00
Dominik Picheta
a1879cae57 Remove bugfixes heading from changelog
This heading is for the automatically generated list of issues fixed.
2018-03-19 09:10:01 +00:00
Araq
3979e83a59 fixes #7331 2018-03-18 17:56:28 +01:00
Dominik Picheta
403c19fba0 Merge pull request #7326 from trustable-code/patch-6
Fix background-color in nimdoc.cfg
2018-03-18 14:40:06 +00:00
Dominik Picheta
58cda83d9e Merge pull request #7356 from GULPF/parseXml-string
Add string overload for parseXml
2018-03-18 13:00:43 +00:00
Araq
863c626078 fixes #7335 2018-03-18 12:13:55 +01:00
Araq
b0994c7f92 better error messages 2018-03-18 12:04:22 +01:00
Oscar Nihlgård
e0ce4f842b Add string overload for parseXml 2018-03-18 11:30:11 +01:00
Araq
4301744e49 raise the max instruction count for the VM to one billion 2018-03-18 11:04:53 +01:00
jcosborn
e39f2a9283 fix allocator corruption for large sizes (#7338)
* fix allocator corruption for large sizes
* allow large chunks to coalesce and added test case
* use correct constants in MaxBigChunkSize
2018-03-17 23:59:04 +01:00
twetzel59
d20729e840 Fix #7304 by clarifying integer width in manual (#7319)
* Fix #7304 by clarifying integer width in manual

* Update lexing.txt
2018-03-17 20:25:28 +01:00
andri lim
19164929ed fixes #7347, asyncfile.getFileSize (#7354)
* fixes #7347

* fixes #7347
2018-03-17 15:21:22 +00:00
Yuriy Glukhov
5ea80b43b1 More flexible lowerBound interface (#7344) 2018-03-16 16:22:45 +01:00
cooldome
70b28a39fe Codegen: use type forward declarations more aggresively. Fixes #7339 (#7340)
Do not emit object definition it if used only by ref or ptr
2018-03-16 16:21:03 +01:00
PMunch
a9f21cffdf Add CommentStmt to astGenRepr (#7313)
* Added codeRepr and dumpCode to the macros module.

This allows those writing macros to write examples, get the code to generate the AST for that example, and then modify that code to be dynamic with the macro function.
2018-03-16 15:57:40 +01:00
WhiteDuke
d56ca42b1a [Documentation] free -> dealloc (#7334) 2018-03-16 15:55:00 +01:00
Andreas Rumpf
37a3eb5170 make 'memset' calls more robust; refs #7341 2018-03-16 15:55:46 +01:00
Andreas Rumpf
b1ab9d551f Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-03-16 15:44:46 +01:00
Andreas Rumpf
08282b1355 make 'memset' calls more robust; refs #7341 2018-03-16 15:44:40 +01:00
Andreas Rumpf
9f17a56896 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-03-16 15:33:16 +01:00
Andreas Rumpf
083d84ba03 json.nim: documentation copy&paste issue 2018-03-16 15:33:09 +01:00
andri lim
4f9f9ea528 fixes #7332 (#7341) 2018-03-16 15:32:01 +01:00
jcosborn
cc5140d8b6 reuse default ident in opcNNewNimNode (performance regression) (#7330)
* reuse default ident in opcNNewNimNode (performance regression)

* use emptyIdent as default
2018-03-14 16:13:30 +01:00
Andreas Rumpf
12f7b96be0 prevent yet another compiler crash from happening 2018-03-14 11:49:27 +01:00
Andreas Rumpf
55a5dcf8a4 improves the stability of 'nim check' 2018-03-13 08:15:24 +01:00
Robert Hencke
ac10a3813a Fix casing in rule 'typeDesc' (#7324)
Also, leave a note in grammar.txt that it is generated.
2018-03-12 09:27:36 +01:00
Araq
8683c8a389 Merge branch 'devel' of github.com:nim-lang/Nim into devel 2018-03-12 09:02:21 +01:00
Araq
710c1184a3 fixes httpclient documentation comment 2018-03-12 08:59:04 +01:00
Simon Krauter
952084eeef Fix background-color in nimdoc.cfg
Don't assume, that the default background-color is white.
My default background-color is dark, which makes the documentation hardly readable: https://i.imgur.com/xN0UjWz.png
The reason is the transparency of the existing color (rgba(252, 248, 244, 0.45);) 
Fixed by removing the transparency.
2018-03-11 18:23:31 +01:00
PMunch
5003942256 Renamed jsondoc2 to jsondoc, similar to doc2 (#7279)
* Update information about jsondoc/jsondoc2

Manual was missing information about jsondoc2 which made it seem like
it didn't exist at all. This commit adds mention of the jsondoc2
command along with an example.

* Renamed jsondoc2 similar to doc2 and updated docs

doc2 was recently renamed to doc while doc was renamed to doc0. This
commits renames jsondoc to jsondoc2 and jsondoc2 to jsondoc0 to behave
tha same way. The documentation for doc/jsondoc was also lagging behind
this change which has also been fixed. I interpreted this as a soft
deprecation of doc and jsondoc and therefore removed them from the
auto-complete lists.
2018-03-08 15:11:45 +01:00