summary refs log tree commit diff stats
path: root/lib/system.nim
Commit message (Collapse)AuthorAgeFilesLines
* Revert "clarify that `char` may not be unsigned" (#20320)ringabout2022-09-081-1/+1
| | | | | Revert "clarify that `char` may not be unsigned (#20308)" This reverts commit f433d9cccf1a05da1a24e9fed9b914b7a2a35945.
* clarify that `char` may not be unsigned (#20308)ringabout2022-09-061-1/+1
|
* Markdown code blocks part 6 (#20292)Andrey Makarov2022-08-311-223/+235
|
* fixes nimPreviewSlimSystem; register echoBinSafe for nimPreviewSlimSystem ↵ringabout2022-08-241-0/+2
| | | | | | | (#20194) * register echoBinSafe * add output
* top-down type inference, implements rfc 149 (#20091)metagn2022-08-241-7/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * micro implementation of rfc 149 refs https://github.com/nim-lang/RFCs/issues/149 * number/array/seq literals, more statements * try fix number literal alias issue * renew expectedType with if/case/try branch types * fix (nerf) index type handling and float typed int * use typeAllowed * tweaks + const test (tested locally) [skip ci] * fill out more of the checklist * more literals, change @ order, type conversions Not copying the full call tree before the typedesc call check in `semIndirectOp` is also a small performance improvement. * disable self-conversion warning * revert type conversions (maybe separate op later) * deal with CI for now (seems unrelated), try enums * workaround CI different way * proper fix * again * see sizes * lol * overload selection, simplify int literal -> float * range, new @ solution, try use fitNode for nil * use new magic * try fix ranges, new magic, deal with #20193 * add documentation, support templates Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* add comments back (#20256)ringabout2022-08-211-0/+3
| | | My bad, I shouldn't have removed it in the precedent PR.
* remove the merge pragma and obsolete comments (#20254)ringabout2022-08-211-7/+4
| | | remove the merge pragma which has been deprecated for seven years
* Remove string == nil/nil == string error (#20222)metagn2022-08-201-23/+0
| | | | | | | * Remove string == nil/nil == string error This was to help migration for `nil` strings being removed, but `nil` strings have been gone for a while now. * remove isNil too
* improve deprecation error messages (#20197)ringabout2022-08-111-4/+2
|
* remove shallowCopy for ARC/ORC (#20070)ringabout2022-07-261-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | * remove shallowCopy for ARC/ORC * use move * fix * more fixes * typo * Update lib/system.nim * follow * add nodestroy * move * copy string * add a changelog entry Co-authored-by: xflywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixes #20015; document `shallowCopy` does a deep copy with ARC/ORC (#20025)flywind2022-07-141-0/+2
|
* move assertions out of system (#19599)flywind2022-03-231-2/+5
|
* apply changes from #18017 and some fixes (#19571)flywind2022-03-011-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * implements https://github.com/nim-lang/RFCs/issues/369 * deprecate unsafeAddr; extend addr addr is now available for all addressable locations, unsafeAddr is deprecated and become an alias for addr * follow @Vindaar's advice * change the signature of addr * unsafeAddr => addr (stdlib) * Update changelog.md * unsafeAddr => addr (tests) * Revert "unsafeAddr => addr (stdlib)" This reverts commit ab83c99c507048a8396e636bf22d55fdd84d7d1c. * doc changes; thanks to @konsumlamm Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * merge * remove * fix bug Co-authored-by: Araq <rumpf_a@web.de> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* move io out of system (#19442)flywind2022-02-021-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | * move io out of system * fix tests * fix tests * next step * rename to syncio * rename * fix nimscript * comma * fix * fix parts of errors * good for now * fix test
* Add noQuit option (#19419) [backport:1.6]Tom2022-01-191-2/+5
| | | | | | | | | * Add noQuit option * Add nim prefix in case of conflicts Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: flywind <xzsflywind@gmail.com>
* add an example to setControlCHook (#19416)nblaxall2022-01-191-0/+9
| | | | | | | * add an example to setControlCHook * [skip CI] format example for setControlCHook Co-authored-by: Nathan Blaxall <nathan.blaxall@actionstep.com>
* suppress deprecated warnings (#19408)flywind2022-01-191-2/+1
| | | | | | | * suppress deprecated warnings once bump version to 1.7.3 enable deprecated messages * deprecate later
* deprecate unsafeAddr; extend addr (#19373)flywind2022-01-161-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | * deprecate unsafeAddr; extend addr addr is now available for all addressable locations, unsafeAddr is deprecated and become an alias for addr * follow @Vindaar's advice * change the signature of addr * unsafeAddr => addr (stdlib) * Update changelog.md * unsafeAddr => addr (tests) * Revert "unsafeAddr => addr (stdlib)" This reverts commit ab83c99c507048a8396e636bf22d55fdd84d7d1c. * doc changes; thanks to @konsumlamm Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* Add support for LoongArch (#19223)wenghongquan2021-12-091-1/+1
| | | | | | | * Add support for LoongArch * Update compiler/installer.ini Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* bump NimVersion to 1.7.1narimiran2021-10-191-1/+1
|
* document -d:nimStrictDelete [backport] (#18939)flywind2021-10-031-0/+4
|
* change comment (#18913)flywind2021-09-281-1/+1
|
* correct effect tracking for .borrowed procs [backport] (#18882)Andreas Rumpf2021-09-231-1/+1
| | | | | | | | | | | * correct effect tracking for .borrowed procs [backport] * progress * fix error message in a test * correctly fix it Co-authored-by: narimiran <narimiran@disroot.org>
* we need something better than warningAsError for effect handling viol… ↵Andreas Rumpf2021-09-041-2/+1
| | | | | | (#18796) * we need something better than warningAsError for effect handling violations
* improvements to `addInt` and `$` for integer types (#18592)Timothee Cour2021-08-191-5/+4
| | | | | | | | * improvements to $(SomeInteger) and addInt * remove mIntToStr, mInt64ToStr * improvements * fix tests/pragmas/tinjectstmt.nim; the diff is harmless, cgen code is identical with -d:danger or debug mode * rm tests/system/tstrmantle.nim * revert compiler/jsgen.nim for -d:nimVersion140
* unary slices get a deprecation period (#18549)Andreas Rumpf2021-07-211-9/+8
|
* make -d:nimFpRoundtrips work consistently in vm vs rt, fix #18400, etc (#18531)Timothee Cour2021-07-201-3/+0
| | | | | | * compiler/vmhooks: add getVar to allow vmops with var params * addFloat vmops with var param * cgen now renders float32 literals in c backend using roundtrip float to string
* use more `.}` (#18542)flywind2021-07-201-4/+4
|
* fixed system.delete (#18507)Andreas Rumpf2021-07-181-7/+10
|
* deprecate cuchar, don't redefine it (#18505)Andreas Rumpf2021-07-161-2/+2
|
* ORC: support for custom =trace procs (#18459)Andreas Rumpf2021-07-091-0/+5
| | | | | | | | | | | * ORC: support custom =trace procs (WIP) * Update tests/arc/tcustomtrace.nim Co-authored-by: Clyybber <darkmine956@gmail.com> * =trace is now documented and seems to work * make test green Co-authored-by: Clyybber <darkmine956@gmail.com>
* ORC: use =destroy instead of =dispose (#18440)Andreas Rumpf2021-07-071-1/+0
| | | | | | * ORC refactoring in preparation for further changes (=dispose must die) * ORC: embrace =destroy, avoid =dispose * ORC: no need for =dispose * closes #18421
* Raise IndexDefect when deleting element at out of bounds index (#17821)Heiko Nickerl2021-06-201-24/+34
| | | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Heiko Nickerl <mail@hnicke.de> Co-authored-by: Heiko Nickerl <heiko.nickerl@flipapp.de>
* Ref #18177 - lbgc.so.5.0 on OpenBSD 6.9 (#18180)Euan2021-06-041-1/+1
|
* dont silence hints in system.nim (#18034)Timothee Cour2021-05-301-2/+2
|
* refs #18011 disable some newly failing tests on cpp windows; refs #17946 ↵Timothee Cour2021-05-141-4/+4
| | | | increase timeout for tchannels (#18012)
* ORC: progress (#18000)Andreas Rumpf2021-05-121-0/+1
| | | | | | | | | * ORC: progress * ORC: bugfix; don't follow acyclic data even if only at runtime the subtype is marked as acyclic * progress * minor style changes
* fix #17911 rawProc for cpp (#17912)Timothee Cour2021-05-011-4/+9
|
* system.nim cleanup some exported constants which should never have be… ↵Andreas Rumpf2021-05-011-20/+2
| | | | | | (#17909) * system.nim cleanup some exported constants which should never have been exported
* misc fixes: remove `forceConst` (obsolete by static), add more ↵Timothee Cour2021-05-011-44/+40
| | | | | | | | | | | | | runnableExamples to system (#17896) * misc fixes * add runnableExamples for compileOption * add runnableExamples for runnableExamples * move tconsteval => tconst * cleanup
* Document the difference between toFloat/toInt and type conversion (#17894)Gabriel Huber2021-04-301-2/+3
|
* Remove confusing <//> (#17830)flywind2021-04-261-4/+0
|
* followup #16714: add -d:nimLegacyUnarySlice + changelog (#17794)Timothee Cour2021-04-201-0/+10
|
* fix https://github.com/nim-lang/RFCs/issues/311 remove unary slice (#16714)Timothee Cour2021-04-191-8/+0
|
* Rename `=` to `=copy` in stdlib (#17781)Clyybber2021-04-191-0/+1
|
* IC exposes typedesc implementation shenanigans (#17759)Andreas Rumpf2021-04-181-1/+1
| | | | | | * IC exposes typedesc implementation shenanigans; so I change system.default's definition to what it should have been to begin with * Update lib/system.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* make cuchar alias uint8 instead of char (#17738)shirleyquirk2021-04-171-1/+1
|
* 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
|