| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* include example of error-marked copy proc
* Update destructors.rst
|
|
|
|
|
|
|
| |
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: 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 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)
* Update tests/vm/t11637.nim
|
| |
|
|
|
|
|
| |
* fix #15706 Underflow not detected when using dec on distinct ranges
* fix #15846 first, jsgen even doesn't care of range in this op
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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"
```
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* fix #15851
* {.cast(noSideEffect).}
|
|
|
|
|
|
|
|
|
| |
* close #9679
* close #7546
* close #9520
* close #6177
|
|
|
|
|
| |
* fix #15609
* fix test
|
| |
|
|
|
|
|
|
|
|
|
| |
* close #11142
* fix #12636
* undo unwanted changes
* fix illegal recursion case
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
* add tests
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
manual, the tutorial, and the `tbintree` test.
|
|
|
|
|
| |
* fix #15835
* add tests
|
|
|
|
|
| |
* remove iup from stdlib
* Update changelog.md
|
| |
|
|
|
|
|
|
|
|
| |
* add parseEnumRange
* fix runnable example
* update changelog
* use parseEnumRange in compiler
* reorganise code
* add changelog, make single normalizer argument
|
| |
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* fixes #15804
* fix the existing test
* add the testcase for #15804
Co-authored-by: narimiran <narimiran@disroot.org>
|
| |
|
|
|
|
|
|
| |
* 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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Added a case where a user might use mgetOrPut and create an accidental
copy of a seq.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* add testcase
* Update tests/template/twhenintemplates.nim
Co-authored-by: Clyybber <darkmine956@gmail.com>
|
| |
|