| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
* make var string return var char w/ BackwardsIndex
fixes #14497
* work around VM bug
* properly workaround again
|
|
|
|
|
|
|
|
|
| |
(#15900)
* original docs are wrong
* fix pathnorm
* Update lib/pure/pathnorm.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update installer.ini
Add support for powerpc64 little endian
* Update buildsh.nimf
Add support for powerpc64 little endian
* Update makefile.nimf
Add support for freebsd/powerpc64 little endian
|
|
|
| |
* https://github.com/conda-forge/nim-feedstock/commit/d8c80ea69dca30d99073d33845ddd79f9892755b#diff-e1d8e552330911f9f779f85b6f2c00a15e790dcc3fbb3b28f5da1d660a30c5b8
|
|
|
|
|
|
|
| |
* fix #15916
* add testcase for #15916
* add comments
|
| |
|
|
|
|
|
|
|
| |
* doAssertRaises now correctly handles foreign exceptions; now shows which exception is raised on mismatch
* nimscript now handles `Exception as e`
* remove catch-all doAssertRaises overload from this PR
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fix #14157
* Update compiler/jsgen.nim
* add changelog
* Update compiler/jsgen.nim
* Update tests/js/tmodify_cstring.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
| |
* fix #12726 Cannot take the compile-time sizeof Atomic types
* fix for arch 32
|
|
|
|
|
|
|
|
|
| |
* fix #14127 from int to int casting
* add test for #14127
* use template for test, also test uint2int
* move to tests/types/t14127_cast_number.nim targets:c cpp js
|
| |
|
| |
|
|
|
|
| |
The `dedent` and `unindent` links were introduced by commit d67c5cb75171
(#15264).
|
|
|
|
|
|
|
|
|
| |
* close #4318(add testcase for #4318)
* Update tests/objects/t4318.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
|
|
|
|
| |
* "eg" is a misspelled "egg", "e.g." is "exempli gratia"
* Also, "ie" is "i.e.".
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* fix #12471
* add testcase
* fix
* test nimdoc is tricky
* Delete t12471.nim
|
| |
|
|
|
|
|
|
|
| |
* rst: add support for markdown tables
* change template into proc
* don't create unnecessary `seq[string]`
|
| |
|
|
|
|
|
| |
* fix #15825
* better fix
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* new: `nim -i cmd`
* rename -i to -e (for eval); consistent with majority of other programing languages
* `nim e -e:cmd` now works; bugfix: `echo cmd | nim e -` now works
* honor --betterRun
* address comments
* --eval alias for -e (replaces undocumented --eval which was a noop)
* --eval now defaults to e (nimscript) instead of r
* address comment: remove -e, only keep --eval
* address comment
* fixup
* Update compiler/nimconf.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Added [:T] syntax explanation to generics tutorial.
* Update doc/tut2.rst
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* Update doc/tut2.rst
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* Made second generics example runnable and added test line.
* Update doc/tut2.rst
* Update doc/tut2.rst
* Update doc/tut2.rst
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit resolves the following warning in the CI logs:
> Error: The `add-path` command is deprecated and will be disabled soon.
> Please upgrade to using Environment Files. For more information see:
> https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
The deprecation is due to an injection vulnerability (CVE-2020-15228).
See:
- https://bugs.chromium.org/p/project-zero/issues/detail?id=2070
- https://github.com/nim-lang/Nim/runs/1373146963#step:8:1
|
|
|
|
|
|
|
|
|
|
|
| |
* fix #15858
* fix space
* fix #15629
* Revert "fix space"
* Revert "fix #15858"
|
|
|
|
|
|
| |
* fix #15858
* fix space
* fix #15629
* Revert "fix #15629"
|
|
|
|
|
| |
* fix mentions of recursive test discovery
* document that {.fatal.} pragmas cannot be caught
|
| |
|
| |
|
|
|
|
| |
* fix #12558
* Update compiler/pragmas.nim
|
|
|
|
|
| |
* 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
|
| |
|