summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. (#9316)c-blake2018-10-123-1/+8
| | | | | | | | | | | * Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. `ptr array[0,T]` for some unchecked type already works but A) `UncheckedArray` seems to be the intended future way for this kind of access, and B) essentially all use cases will have a `ptr` for that kind of array source and this call signature lets callers drop the trailing `[]` corresponding to that `ptr` deref. This PR relates to issue https://github.com/nim-lang/Nim/issues/9001 . * Add a test for toOpenArray() for UncheckedArray[T]s.
* Proposed solution for issue #8919 (#9280)eqperes2018-10-121-0/+2
| | | | | | * Proposed solution for issue #8919 * count sub/subs must be non-empty
* Testament pre parallel (#9137)Jacek Sieka2018-10-1218-17/+20
| | | | | | | | | | * testament: move to root dir (it's not a test) * osproc: fix process index passed to afterRunEvent for parallel runs it was passing the index of the process, not index of all commands * testament: complete file move
* complete removal of web folder, fixes #9304 (#9310)Miran2018-10-124-7/+1
| | | | | | * complete removal of web folder, fixes #9304 * remove `buildJS`
* Merge tests into a larger file (part 1 of ∞) (#9318)Miran2018-10-12103-3397/+3765
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * merge actiontable tests * merge arithm tests * merge array tests * merge assign tests * merge bind tests * merge casestmt tests * merge closure tests * merge cnt seq tests * merge collections tests * merge concept issues tests * merge concept tests * fix failing tests * smaller outputs Use `doAssert` where possible. * fix wrong output * split `tcomputedgoto` * revert merging concepts * fix failing test
* manual: Remove stmt or expr template related text from manual (#9321)Tomohiro2018-10-121-9/+5
|
* Avoid memory allocation during dynlib loading (#9320)LemonBoy2018-10-121-4/+4
| | | | | | | By using `write` instead of `rawWrite` we'd end up asking the compiler to generate the GC dynlib _while_ we were already generating another dynlib! Fixes #9123
* string to string conversion keeps the dest type (#9323)LemonBoy2018-10-122-1/+13
| | | Fixes #9322
* Align to the actual experience (#9324)cooldome2018-10-121-5/+6
| | | | | | * Align to the actual experience * add exception handling
* 8684 add shortcut sort procs (#9174)Konstantin Molchanov2018-10-112-23/+70
| | | | | | | | * Stdlib: Algorithm: Add shortcut versions of sort, sorted, and isSorted procs. * Add tests for sort, sorted, and isSorted procs from algorithm module. * Merge sort tests into tsortcall.nim, remove tsort.nim. * Stdlib: Algorithm: Add shortcut versions of sort, sorted, and isSorted procs. * Add tests for sort, sorted, and isSorted procs from algorithm module. * Merge sort tests into tsortcall.nim, remove tsort.nim.
* gogc: GCC-8.2.0 compatibility and other improvements (#9211)Ștefan Talpalaru2018-10-115-119/+84
| | | | | | | | - Go's write barriers are now plugged-in in all the relevant points - "gcGo" is correctly classified by usesWriteBarrier() - some gogc structures and functions now use golib wrappers to keep GCC version-specific conditions out of the compiler/stdlib code - we no longer allow mixing the C malloc with Go's - fix a problem with string copying
* fixes #9281Araq2018-10-113-3/+32
|
* fixes #9306Araq2018-10-111-2/+2
|
* Clarify that term rewriting macros are applied recursively (#9305)Andrea Ferretti2018-10-111-0/+6
| | | Fixes https://github.com/nim-lang/Nim/issues/9288 fixes https://github.com/nim-lang/Nim/issues/8376 and fixes https://github.com/nim-lang/Nim/issues/2901
* codeowners: try to make github's RST parser happyAraq2018-10-111-19/+19
|
* update contributing.rst and added codeowners.rstAraq2018-10-112-19/+83
|
* compile date and compile time tz written in doc (#9283)eqperes2018-10-111-2/+2
|
* Add procs to retrieve project name, directory and full path to nimscript (#9274)Solitude2018-10-112-0/+18
|
* fixes #9297 (#9298)cooldome2018-10-114-11/+50
| | | | | | * fixes #9297 * improve spacing
* test case for #9180 and re-enables the disabled tcompilerapi test (#9181)Timothee Cour2018-10-112-22/+29
| | | | | | * add findNimStdLibCompileTime and un-disable tcompilerapi test; add test case for #9180 * address comments
* compiler: show name of instantiating context in error traces (#6763) (#9207)xzfc2018-10-119-19/+31
|
* make contributing.rst more up to date; reference it in readme.md to make it ↵Timothee Cour2018-10-112-27/+94
| | | | more discoverable (#9302)
* rm web/website.ini (#9290)Timothee Cour2018-10-111-82/+0
|
* Fix OrderedSet.excl (#9287)Oscar Nihlgård2018-10-111-34/+29
|
* fix #9295 (#9299)Timothee Cour2018-10-111-1/+1
|
* Fix wrong heuristic in codegen (#9293)LemonBoy2018-10-112-1/+29
| | | | | A bare return may trigger the insertion of a genericReset. Fixes #9286
* Fix tests on NixOS (#9209) (#9285)xzfc2018-10-103-4/+4
| | | | | | | * Replace `/bin/sleep` with just `sleep`, i.e. use environment variable `$PATH` to locate binary. * Replace `/usr/share/zoneinfo` with `$TZDIR` when it is defined, fallback to hardcoded path otherwise. This is the same behavior that Glibc2 normally have, see man 3 tzset.
* Unchecked arrays now have their own type (#9267)LemonBoy2018-10-1015-21/+72
|
* fixes #9263Andreas Rumpf2018-10-102-62/+197
|
* Documentation improved for `math` module (#9266)eqperes2018-10-101-79/+171
|
* Fixes #9154 (#9193)manterolat2018-10-102-0/+6
|
* Iter test: closes #3819 (#9272)Miran2018-10-101-0/+28
|
* fix #9264 regression (#9265)Timothee Cour2018-10-091-5/+2
|
* Fix macro expansion in expandMacros (#8998)LemonBoy2018-10-092-5/+22
| | | | | | | | | | * Fix macro expansion in expandMacros Running a semanticized node trough the semantic pass was a bad idea. Fixes #7723 * Simpler smaller implementation
* better docs for `tables` module (#9221)Miran2018-10-091-176/+190
| | | | | | * better docs for `tables` module * lower case for the first sentence in docs
* fix tests/generics/t8694.nim: runnableExamples were not run because of #9216 ↵Timothee Cour2018-10-091-3/+3
| | | | (#9262)
* better docs for `algorithm` module (#9192)Miran2018-10-091-58/+103
| | | | | | | | | | | | * better docs for `algorithm` module * address the comments * small first letter in the first sentence * last argument is reverted to be `int` * `rotateLeft` keeps `discardable` pragma, as discussed on IRC * another small correction
* [cleanup] remove `xmldom` and `xmldomparser` (#9234)Miran2018-10-096-1280/+2
|
* Do not encode the anchors in docs (`id` attr in `a` tags) (#9261)Kaushal Modi2018-10-093-5/+5
| | | | | Update the tests too. Fixes https://github.com/nim-lang/Nim/issues/9232.
* Separate high/low/len docs for each overload (#8816)hlaaf2018-10-091-19/+99
|
* fixes unexpected transforming of runnableExamples (#9158)Steve Kellock2018-10-093-7/+9
|
* Fix overload resolution for pragmas evaluation (#8902)LemonBoy2018-10-098-33/+66
| | | | Fixes #6448 Fixes #4384
* Field checks for everybody (#8957)LemonBoy2018-10-0910-44/+224
| | | | | | | | | | | | | | | | | | | | | * Field checks for JS backend * Clean nkCall nodes with no arguments Generating a nkEmpty in place of no arguments makes no sense form the AST point of view and also trips up the VM codegen. * Field checks for VM backend * Test case for #6612 This patchset fixes #6612 * Add test case for LHS double evaluation * Prevent LHS double-eval for JS backend * Prevent double evaluation in VM backend
* Try/Catch support for native JS exceptions (#8955)LemonBoy2018-10-094-8/+77
| | | | | | * Try/Catch support for native JS exceptions * Better tests
* Fix transformation of yield in inline context (#9135)LemonBoy2018-10-092-15/+63
| | | | | | When the loop variables are part of the envP block it is not safe to use a nkFastAsgn. Fixes #2656
* Fixes #8994. FutureStream read procedure data loss no longer occurs. (#9183)Dominik Picheta2018-10-092-2/+24
| | | | | | * Fixes #8994. FutureStream read procedure data loss no longer occurs. * Optimises the fix for #8994.
* fix for #9082 (#9089)Arne Döring2018-10-091-14/+16
|
* Fixes #8841 (#9101)Yasuhiro Horimoto2018-10-091-2/+2
| | | Modify comments for readChar and peekChar to the same as the comment for them in the source code.
* fix #8341: add lastPathPart (#9116)Timothee Cour2018-10-092-49/+88
|
* Make the registered passes local to the ModuleGraph (#9259)LemonBoy2018-10-0912-64/+60
| | | Closes #9068