summary refs log tree commit diff stats
path: root/lib/system.nim
Commit message (Collapse)AuthorAgeFilesLines
* Fix array's high & low return type for empty arrays (#17705)Tanguy Cizain2021-04-151-0/+8
| | | | | | | | | * fix array.high/low return type * Add test for empty array low return type Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* iterable[T] (#17196)Timothee Cour2021-04-111-0/+4
| | | | | | | | * fix failing test toSeq in manual which now works * changelog * reject proc fn(a: iterable) * add iterable to spec * remove MCS/UFCS limitation that now works
* document caveats of quit (#17648)Timothee Cour2021-04-051-4/+8
|
* [docs]fix #17473 (#17565)flywind2021-03-291-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix nim js cmp fails at CT * Add `hasClosure` to `std/effecttraits` * type * Update changelog.md Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * fix #14011 * Delete ttypetraits.nim * Apply suggestions from code review * fix #17473 * Revert "fix #14011" This reverts commit 0eed97a84b172b198bf4e6de69c04b84ef9d9f93. * Update lib/system.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* system: fix link in `delete` proc (#17550)ee72021-03-281-1/+1
| | | The `delete` proc had a "See also" link that linked to itself.
* fix #17260 render `\` properly in nim doc, rst2html (#17315)Timothee Cour2021-03-241-2/+2
|
* IC: green tests (#17311)Andreas Rumpf2021-03-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * IC: renamed to_packed_ast module to ic module * IC: don't store the --forceBuild flag, makes it easier to test * IC: enable hello world test * Codegen: refactorings for IC; changed the name mangling algorithm * fixed the HCR regressions * life is too short for HCR * tconvexhull is now allowed to use deepCopy * IC exposed a stdlib bug, required a refactoring * codegen: code cleanups * IC: even if a module is outdated, its dependencies might come from disk * IC: progress * IC: better name mangling, module IDs are not stable * IC: another refactoring helping with --ic:on --gc:arc * disable arraymancer on Windows for the time being * disable arraymancer altogether * IC: make basic test work with 'nim cpp' * IC: progress on --ic:on --gc:arc * wip; name mangling for type info
* rename channels to channels_builtin (#17330)flywind2021-03-121-1/+1
| | | | | | | * improve test coverage for isolation * a bit better * rename channels to channels_builtin
* use .. warning:: (#17226)flywind2021-03-041-5/+3
| | | | | | | * remove unnecessary when statement * remove outdated codes * use warnings
* followup #17225: simplify code after removing gc2, generational (#17242)Timothee Cour2021-03-031-3/+2
|
* \r now renders as \r, not \c which was not standard (#17244)Timothee Cour2021-03-031-3/+3
|
* rename prepareStrMutation to prepareMutation (#17235)flywind2021-03-031-3/+3
| | | | | | | * remove unnecessary when statement * remove outdated codes * rename prepareStrMutation to prepareMutation
* add runnableExamples for prepareStrMutation (#17227)flywind2021-03-021-1/+8
| | | | | * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* `--nilseqs` is now a deprecated noop (#17211)Timothee Cour2021-03-011-20/+13
| | | | | * --nilseqs is now a deprecated noop * fix tests; fix: future => sugar
* fixes #17173 (#17213)Andreas Rumpf2021-03-011-0/+6
| | | | | | | | | | | | | | | | | | | | | | * fixes #17173 * add testcase (#17214) * Apply suggestions from code review * fix for newruntime * Apply suggestions from code review * Update lib/system.nim * Update lib/system.nim * Update lib/system.nim Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
* add overload `add(a: var string, b: openArray[char])` (#15951)Timothee Cour2021-03-011-7/+8
| | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Change stdlib imports to use std prefix in most examples (#17202)Danil Yarantsev2021-02-281-2/+2
|
* system: more runnableExamples + doc improvements (#17075)Timothee Cour2021-02-171-39/+48
|
* remove all uses of condsyms symbols defined prior to bootstrap nim 0.20.0 ↵Timothee Cour2021-02-171-198/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#16918) * nimNoArrayToCstringConversion deadcode * nimbabel deadcode * nimHasalignOf deadcode * nimvarargstyped deadcode * nimhygiene deadcode * nimNewTypedesc deadcode * nimlocks deadcode * nimHasCppDefine deadcode * nimHasRunnableExamples deadcode * nimHasNilChecks deadcode * nimSymKind deadcode * minor macros refactoring * nimVmEqIdent deadcode * nimNoNil deadcode * nimNoZeroTerminator deadcode * nimHasSymOwnerInMacro deadcode * nimVmExportFixed deadcode * nimNewRuntime deadcode * nimAshr deadcode * nimUncheckedArrayTyp deadcode * nimHasTypeof deadcode * nimErrorProcCanHaveBody deadcode * nimHasHotCodeReloading deadcode * nimHasSignatureHashInMacro deadcode * nimHasDefault deadcode * nimMacrosSizealignof deadcode
* [backport:1.4] JS cstring null fixes (#16979)hlaaftana2021-02-111-2/+16
| | | | | * [backport:1.4] JS cstring null fixes * fix JS move string * make it look cleaner
* Deprecate any (#16920)Juan Carlos2021-02-081-1/+1
|
* document typeof (#16965)Timothee Cour2021-02-081-2/+17
|
* use typeof instead type (#16962)flywind2021-02-081-168/+168
|
* fix `of` procs + runnableExamples (#16932)Timothee Cour2021-02-051-8/+25
|
* document `default` (#16942)Timothee Cour2021-02-051-2/+17
|
* link compile-time options together in docs (#16879)n5m2021-02-021-2/+21
| | | | | | | | | | | | | | | | | | | | | * link similar compiler option proc together * fixup links * fix formatting and links * example formatting * drop declared * link to compilesettings * only link define pragmas once * drop another declared * backlink to compileOptions from compilesettings * remove newline
* remove quotation marks around imports - fixes links in the docs (#16888)Miran2021-02-011-2/+2
|
* remove conditionals on nimHasUserErrors, nimNoNilSeqs2, nimNoNilSeqs (#16861)Timothee Cour2021-01-291-18/+12
| | | | | | | | | * cleanup docs for type(nil) | type(nil); simplify nimHasUserErrors * simplify nimNoNilSeqs2 * simplify nimNoNilSeqs * fixup
* fix floats slice (#16853)flywind2021-01-291-6/+6
| | | | | | | | | | | | | | | | | | | | | | | * see whether it breaks * fix * fix * minor * fix * add enum * use Ordinal types * fix tests * fix * another style * fix remainning cases
* addQuitProc => addExitProc (#16765)Timothee Cour2021-01-221-4/+3
|
* promote math.isNaN (#16734)flywind2021-01-151-1/+1
|
* Deprecate TaintedString (#15423)Juan Carlos2021-01-151-16/+1
| | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* fix #16555, fixes #16405: len, high honors '\0' for cstring in vm (#16610)Timothee Cour2021-01-111-7/+13
|
* fix #12311 (#16578)flywind2021-01-041-4/+7
|
* fix #8412 (#16563)flywind2021-01-031-6/+12
| | | | | | | | | | | | | | | | | * Revert "Make config processing order test more robust" This reverts commit cf714c129f7dd598863d1cc588e685df2438c658. * enable tmath tests * fix #8412 * Revert "enable tmath tests" This reverts commit 293b63f57ef71e6c43b9faf24883c998c40a9484. * add tests * fix
* fix #16494 (#16513)flywind2021-01-011-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix #16494 * fix * fix * fix * fix * fix * fix performance * add comments * improve performance * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/stdlib/tmath_misc.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update tests/stdlib/tmath_misc.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Added cmpMem export (#16484)Antonis Geralis2020-12-291-0/+2
| | | | | | | | | | | | | * added cmpMem export * updates * fix test * Tiny changelog change * Add a dot. Co-authored-by: Clyybber <darkmine956@gmail.com>
* fix nim js cmp fails at CT (#16473)flywind2020-12-271-8/+2
|
* mark abs as inline (#16432)flywind2020-12-221-5/+5
|
* misc cleanups (#16383)Timothee Cour2020-12-181-3/+3
|
* refactorings to prepare the compiler for IC (#15935)Andreas Rumpf2020-12-171-1/+1
| | | | | | | | | | | | | | * added ic specific Nim code; WIP * make the symbol import mechanism lazy; WIP * ensure that modules can be imported multiple times * ambiguity checking * handle converters and TR macros properly * make 'enum' test category green again * special logic for semi-pure enums * makes nimsuggest tests green again * fixes nimdata * makes nimpy green again * makes more important packages work
* disabled sink openArray[T] for adding to seqs (#16352) [backport:1.4]lqdev2020-12-141-1/+1
|
* Fix broken links in docs (#16336)Elliot Waite2020-12-141-12/+12
| | | | | * Fix broken links in docs * Fix rand HSlice links
* Add 32-bit RISC-V support (#16231)Alf-André Walla2020-12-031-1/+1
|
* ref #16054 undefine some stuff in JS backend (#16070)flywind2020-11-261-45/+46
|
* inc and dec are atomic in JS backend (#16129)flywind2020-11-251-1/+1
|
* add simple writeStackTrace for JS backend (#16016)flywind2020-11-241-1/+1
| | | | | | | * add simple writeStackTrace for JS backend * add testcase for writeStackTrace * changelog
* fix #16025 repr now consistent: does not insert trailing newline (#16034)Timothee Cour2020-11-191-0/+3
|
* make var string return var char w/ BackwardsIndex (#15461)hlaaftana2020-11-121-0/+1
| | | | | | | | * make var string return var char w/ BackwardsIndex fixes #14497 * work around VM bug * properly workaround again
* doAssertRaises improvements; nimscript supports `except Exception as e` (#15765)Timothee Cour2020-11-121-1/+2
| | | | | | | * 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>