| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Make IntSet an ordinal set OrdSet[A: Ordinal]
Backward compatibility with IntSet is maintained.
IntSet is an alias for OrdSet[int]
* move ordsets to new file, intsets exports it
* ordset, move to lib/std folder
* Fix `$` for ordsets and test cleanup
* Fix ordsets compilation in doc example
* Rename ordsets to packedsets
|
|
|
|
|
|
|
|
| |
* Alternate PR to https://github.com/nim-lang/Nim/pull/15915 to
resolve the problem mentioned there (`hash() == 0`) as well as
to close https://github.com/nim-lang/Nim/issues/15624
* Address https://github.com/nim-lang/Nim/pull/15937#discussion_r522759669
{ though this was only a move from 2 copies to 3 copies. ;-) }
|
| |
|
|
|
|
|
|
|
| |
* fix #15941
* add testcase
* update
|
|
|
|
|
|
|
|
|
|
|
| |
`existsEnv` (v2) (#15826)
* js -d:nodejs now supports osenv: `getEnv`, `putEnv`, `envPairs`, `delEnv`, `existsEnv`
* refactor to osenv
* fix for js (without -d:nodejs) + VM
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
| |
* https://github.com/conda-forge/nim-feedstock/commit/d8c80ea69dca30d99073d33845ddd79f9892755b#diff-e1d8e552330911f9f779f85b6f2c00a15e790dcc3fbb3b28f5da1d660a30c5b8
|
|
|
|
|
| |
* fix #12726 Cannot take the compile-time sizeof Atomic types
* fix for arch 32
|
|
|
|
| |
The `dedent` and `unindent` links were introduced by commit d67c5cb75171
(#15264).
|
|
|
|
| |
* "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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
- ...
|
| |
|
|
|
|
|
| |
* fix #15851
* {.cast(noSideEffect).}
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
| |
* fix #15835
* add tests
|
|
|
|
|
|
|
|
| |
* add parseEnumRange
* fix runnable example
* update changelog
* use parseEnumRange in compiler
* reorganise code
* add changelog, make single normalizer argument
|
| |
|
|
|
|
|
|
|
|
|
| |
* fixes #15804
* fix the existing test
* add the testcase for #15804
Co-authored-by: narimiran <narimiran@disroot.org>
|
| |
|
| |
|
|
|
|
| |
Added a case where a user might use mgetOrPut and create an accidental
copy of a seq.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* promote `collect` macro as a map+filter replacement
* Update lib/pure/collections/sequtils.nim
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* add approxequal
* Address review comments, tests that pass
* more wikipedia links [ci skip]
* forgot since
Co-authored-by: b3liever <b3liever@yandex.com>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
|
|
| |
* fixes #15413
* better hide it properly
* see if this makes our list of important packages happy
|
|
|
|
|
|
|
| |
* Make default state public
* Address review comments
Co-authored-by: b3liever <b3liever@yandex.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* update c_malloc's to csize_t
fix for broken --os:ios
* I'm an idiot sorry
* Create talgorithm.nim
* workaround for #10456
I don't understand the intricacies of how lambdalifting and template expansions interact with lent, so i don't know how to fix the real problem, but this sidesteps whatever issue that is.
* working test, use typeof rather than auto
|
|
|
|
|
|
|
|
|
|
|
| |
* fix in the net.`$` to print zeros that are not in the compressed group
* Update lib/pure/net.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Update net.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
|
|
|
|
|
| |
* Fix #12410, big thanks to @pmetras for this fix
* Add testcase
|
| |
|
|
|
| |
Co-authored-by: Igor Ribeiro de Assis <igor.ribeiro_de_assis@zeiss.com>
|
|
|
|
|
| |
Since #8296, fgSetColor is no longer a global. These commands were
probably left out from the change as an oversight, so some tests have
been added to make sure this won't happen again.
|
|
|
|
|
| |
* dup docs: add addQuoted example
* fixup
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* os: add overload copyFile*(source, dest: string, isDir = false)
* renamed to copyFileToDir
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update parsecfg.nim
Returns the specified default value if the specified key value does not exist.
* Update lib/pure/parsecfg.nim
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* Update lib/pure/parsecfg.nim
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* Update lib/pure/parsecfg.nim
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
|
| |
|