summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* include example of error-marked copy proc (#15886)n5m2020-11-091-1/+7
| | | | | * include example of error-marked copy proc * Update destructors.rst
* Add a macro returning enum items count (#15824)Ivan Bobev2020-11-093-0/+55
| | | | | | | Add a macro `enumLen` which is used to determine the number of items in an enumeration type to the `typetraits.nim` module. Also, add unit tests for it in the `ttypetraits.nim` module. Related to nimlang/Nim#15824
* Nimgrep improvements 2 (#15612)Andrey Makarov2020-11-093-297/+1049
| | | | | | | | | | | | | | | | | | | | | | | | | | | * nimgrep: speed up by threads and Channels * nimgrep: add --bin, --text, --count options * nimgrep: add --sortTime option * allow Peg in all matches including --includeFile, --excludeFile, --excludeDir * add --match and --noMatch options * add --includeDir option * add --limit (-m) and --onlyAscii (-o) options * fix performance regression introduced in nimgrep improvements #12779 * better error handling * add option --fit * fix groups in --replace * fix flushing, --replace, improve --count * use "." as the default directory, not full path * fix --fit for Windows * force target to C for macosx * validate non-negative int input for options #15318 * switch nimgrep to using --gc:orc * address review: implement cropping in matches,... * implement stdin/pipe & revise --help * address stylistic review & add limitations
* Console apps in Windows can raise OSError (#15874)Luca Guzzon2020-11-081-1/+4
| | | | | | | | Console apps in Windows implementation can raise OSError so I've fixed it, see below some examples for reference: - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L170 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L178 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L191-L192 - https://github.com/nim-lang/Nim/blob/c07807bedf1749fa9d3e826d3d736907fefbe568/lib/pure/terminal.nim#L196-L197 - ...
* close #11637(add testcase for #11637) (#15879)flywind2020-11-081-0/+52
| | | | | * close #11637(add testcase for #11637) * Update tests/vm/t11637.nim
* Fix typo in lexer.nim (#15876)sherbst2020-11-071-1/+1
|
* Fix #15706 (#15846)Bung2020-11-072-1/+7
| | | | | * fix #15706 Underflow not detected when using dec on distinct ranges * fix #15846 first, jsgen even doesn't care of range in this op
* close #8558(add testcase for #8558) (#15872)flywind2020-11-071-0/+26
|
* uint and uint64 is Ordinal type since nim 1.0.0 (#15873)flywind2020-11-071-3/+1
|
* Make `{.requiresInit.}` to work for distinct types (#15869)Ivan Bobev2020-11-066-9/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make `requiresInit` pragma to work for distinct types in addition to objects. Tagging of distinct types with `requiresInit` pragma was already supported, but its impact wasn't applied. Now its behavior when applied on distinct types is as follows. Given the following distinct type definitions: ```nim type DistinctObject {.requiresInit, borrow: `.`.} = distinct MyObject DistinctString {.requiresInit.} = distinct string ``` The following code blocks will fail to compile: ```nim var foo: DistinctFoo foo.x = "test" doAssert foo.x == "test" ``` ```nim var s: DistinctString s = "test" doAssert s == "test" ``` But these ones will compile successfully: ```nim let foo = DistinctFoo(Foo(x: "test")) doAssert foo.x == "test" ``` ```nim let s = "test" doAssert s == "test" ```
* Closes #12897 (#15867)Clyybber2020-11-061-0/+9
|
* close #8829(add testcase for #8829) (#15866)flywind2020-11-061-0/+18
|
* follow #11707(add pragmas examples for =>) (#15863)flywind2020-11-061-0/+10
|
* fix #15851 (#15852)flywind2020-11-062-7/+11
| | | | | * fix #15851 * {.cast(noSideEffect).}
* static[T] related fixes (#15853)cooldome2020-11-062-1/+102
| | | | | | | | | * close #9679 * close #7546 * close #9520 * close #6177
* fix #15609 (#15856)cooldome2020-11-052-10/+42
| | | | | * fix #15609 * fix test
* Tiny unittest doc fixClyybber2020-11-051-3/+2
|
* Fix #12636 (#15850)cooldome2020-11-052-3/+19
| | | | | | | | | * close #11142 * fix #12636 * undo unwanted changes * fix illegal recursion case
* micro improvements (#15849)Andreas Rumpf2020-11-052-2/+3
|
* close #11142 (#15847)cooldome2020-11-051-0/+14
|
* document #15618 (#15810)flywind2020-11-051-0/+9
| | | | | | | | | | | | | | * document #15618 * Update lib/pure/unittest.nim * Update lib/pure/unittest.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> * Update lib/pure/unittest.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* fix adding empty sequence to HTTP headers (#15783)flywind2020-11-052-4/+34
| | | | | * fix adding empty sequence to HTTP headers * add tests
* fix #15663 (#15839) [backport:1.4]flywind2020-11-052-0/+14
|
* fix #15463 (#15831)flywind2020-11-053-2/+13
|
* change non-working example to runnableExamples (#15841)flywind2020-11-051-7/+5
|
* close #10307(add testcase for #10307) (#15840)flywind2020-11-051-0/+23
|
* close #8457 (#15844)flywind2020-11-051-0/+11
|
* fix static[Slice[T]] as argument issue (#15842)cooldome2020-11-042-1/+13
|
* Clarify the sense in which Nim supports recursive iterators in the (#15834)c-blake2020-11-043-7/+44
| | | manual, the tutorial, and the `tbintree` test.
* fix #15835 (#15838)flywind2020-11-042-0/+19
| | | | | * fix #15835 * add tests
* remove iup from stdlib in contrast to #15828 (#15830)flywind2020-11-034-1003/+2
| | | | | * remove iup from stdlib * Update changelog.md
* fix deprecated messages regarding high (#15832)flywind2020-11-032-2/+2
|
* EnumUtils, speed up findStr in compiler (#15777)cooldome2020-11-036-68/+89
| | | | | | | | * add parseEnumRange * fix runnable example * update changelog * use parseEnumRange in compiler * reorganise code * add changelog, make single normalizer argument
* fix #12640 (#15829)flywind2020-11-032-1/+32
|
* follow #15818 and close #7109 (#15823)flywind2020-11-022-2/+13
| | | | | | | | | * follow #15818 and close #7109 * Update compiler/jsgen.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
* `ioutils` are moved to `fusion` (#15822)Miran2020-11-022-134/+0
|
* simplify toHex (#15821)Timothee Cour2020-11-021-29/+2
|
* fixes #15804 (#15820)Andreas Rumpf2020-11-023-15/+27
| | | | | | | | | * fixes #15804 * fix the existing test * add the testcase for #15804 Co-authored-by: narimiran <narimiran@disroot.org>
* fixes #15594 (#15819)flywind2020-11-022-0/+12
|
* Handle BLOB column type in SQLite as binary data (#15681)Regis Caillaud2020-11-022-15/+128
| | | | | | * Fixed not handling blob correctly in sqlite * Fixed setLen commented by mistake * Added binary example as db_sqlite doc * Added tests for sqlite binary data
* more clear (#15812)flywind2020-11-021-2/+2
|
* Closure iterators are not supported by VM (#15818)flywind2020-11-022-0/+11
|
* fix #8821 (#15809)flywind2020-11-022-0/+17
|
* Use modern enums in compiler (#15775)cooldome2020-11-0218-337/+219
|
* Update tables documentation (#15807)Thomas Tay2020-11-021-0/+34
| | | | Added a case where a user might use mgetOrPut and create an accidental copy of a seq.
* fixes #15717flywind2020-11-022-0/+21
|
* fix #15815 (#15817)flywind2020-11-022-1/+20
|
* fix #15145 (#15816)flywind2020-11-022-4/+17
|
* closes #3670 [add testcase for #3670] (#15808)flywind2020-11-011-0/+11
| | | | | | | * add testcase * Update tests/template/twhenintemplates.nim Co-authored-by: Clyybber <darkmine956@gmail.com>
* TyposClyybber2020-10-311-1/+1
|