summary refs log tree commit diff stats
path: root/lib/system.nim
Commit message (Collapse)AuthorAgeFilesLines
* system.nim: avoid 'cannot prove init' warnings for the '..' constructorsAraq2019-02-201-3/+2
|
* fixed merge conflictAndreas Rumpf2019-02-181-10/+24
|\
| * allow string insert in nimscript, fixes #10561narimiran2019-02-151-1/+1
| |
| * deprecated leftovers from era of no unsigned integer types (#10605)Arne Döring2019-02-141-9/+23
| |
| * Move cpp exception handler from system to excpt next to the signal handler ↵cooldome2019-02-081-20/+0
| | | | | | | | | | | | (#9435)
* | Move cpp exception handler from system to excpt next to the signal handler ↵cooldome2019-02-131-20/+0
| | | | | | | | | | | | (#9435)
* | make it work with latest system.nimAndreas Rumpf2019-02-081-12/+8
| |
* | Merge branch 'devel' into araq-quirky-exceptionsAndreas Rumpf2019-02-081-355/+155
|\|
| * system refactorings (#10559)Andreas Rumpf2019-02-061-285/+43
| | | | | | | | | | | | | | | | * move IO subsystem into its own module; refs #10385 * make standalone test compile again * make C++ examples compile again * make more tests green * make sysAssert and gcAssert work again
| * Remove unused variableLemonBoy2019-01-301-1/+1
| |
| * gc: destructors is beginning to work (#10483)Andreas Rumpf2019-01-291-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * kochdocs.nim: code cleanup * docgen: nicer indentation * parser.nim: code cleanup * fixes #10458 * make tests green again * make =destroy mixins * gc:destructors: produced C code is almost working * --gc:destructors simple program compiles (but leaks memory) * gc:destructors make examples compile in C++ mode * destructors: string implementation bugfixes * strs.nim: minor code cleanup * destructors: builtin seqs are beginning to work * remove debugging helpers
| * fixes #9149 [backport]Araq2019-01-291-4/+6
| |
| * make --define:noSignalHandler compile againAraq2019-01-221-1/+1
| |
| * deprecate += and friends for bool and enum (#10336)Arne Döring2019-01-181-4/+10
| | | | | | | | | | * fixes #10257 * add version to deprecation
| * [CI] now enables `NIM_COMPILE_TO_CPP=true` to run without allow_failures ↵Timothee Cour2019-01-171-1/+6
| | | | | | | | | | | | | | | | (#10315) * better fix for `nim cpp` bootstrap error: error: no member named raise_id * [CI] now enables runs NIM_COMPILE_TO_CPP=true without allow_failures * workaround refs #10343
| * add unsetControlCHook to remove a Ctrl-C hook after it was set (#7267)Vindaar2019-01-101-0/+4
| | | | | | | | | | | | | | | | | | * add unsetControlCHook to remove a Ctrl-C hook after it was set Adds the inverse proc to setControlCHook in order to lift a Ctrl-C hook after it has been set. * remove check for noSignalHandler in system/excpt.nim
| * void object fields are now ignored by codegen and fields/fieldPairs iterator ↵Neelesh Chandola2019-01-101-0/+1
| | | | | | | | | | | | | | | | | | (#10144) * Codegen now ignores object fields of type void * Fix `$` bug for objects/tuples where it does not add a comma * fields/fieldPairs iterators now ignore void types * Use `isEmptyType` instead of checking for `tyVoid` directly
| * Fix exception tracking for system.open (#10253)Oscar Nihlgård2019-01-101-3/+4
| |
| * ValueError now inherits from CatchableError (#10246)Oscar Nihlgård2019-01-101-1/+1
| |
| * add `isNamedTuple`; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) ↵Timothee Cour2019-01-081-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | which leaked implementation detail (#10070) * add `isNamedTuple`; make $(1, 2) be (1, 2) instead of leaking implementation detail (Field0: 1, Field1: 2) fixes this: #8670 (comment) /cc @alehander42 @Vindaar @mratsim * Note: isNamedTuple is useful in other places, eg #10010 (comment) * move isNamedTuple to helpers.nim to avoid exposing new symbol to system.nim * remove workaround in tests/vm/tissues.nim failing test now that #10218 was makes it work
| * * move up runnableExamples definition so can be used more in system.nim (#10196)Timothee Cour2019-01-051-28/+30
| | | | | | | | * document that toInt, toBiggestInt round towards 0 and add runnableExamples * minor doc fixes
| * fix system.nim documentations (#10168)alaviss2019-01-041-2/+2
| | | | | | | | | | * system: fix nimGC_getStackBottom doc * system/helpers: avoid leaking docs to system
| * fix bug in doAssertRaises when exception==Exception (#10172)Timothee Cour2019-01-041-11/+19
| | | | | | | | | | * fix bug in doAssertRaises when exception==Exception * add testcase for doAssertRaises
| * [backport] correctly document `toInt`, fixes #2764 [ci skip] (#10176)Miran2019-01-041-4/+6
| |
| * Add {.noReturn.} to system.raiseAssert (#10161)Oscar Nihlgård2019-01-021-1/+1
| |
* | --define:nimQuirky exception handling for Nim; in preparation of a blog postAndreas Rumpf2019-01-031-0/+22
|/
* Dead code elimination for entire modules and their init procs if empty (#10032)cooldome2018-12-301-6/+3
| | | | | | * fixes #9798 * Change order of write modules * Move datInit calls ahead of initStackBottom
* revives: Move typetraits.`$` to system. Fixes #5827 (#10071)Timothee Cour2018-12-301-0/+9
| | | | | | * Move typetraits.`$` to system. Fixes #5827. * revive PR; adjust code to make sure everything works and add tests * fix tests/concepts/tstackconcept.nim * address comments
* clarify doc for <= on tuple uses lexicographic order (#10069)Timothee Cour2018-12-211-4/+4
|
* Fixed insert for nil seq in js (#10068)Yuriy Glukhov2018-12-211-1/+1
|
* Add system.$(HSlice) and fix #7898 (#8670)hlaaf2018-12-211-1/+11
| | | | | | * Add system.$(HSlice) and fix #7898 * Surround system.$(HSlice) with spaces
* fixes #9120Araq2018-12-161-1/+1
|
* fixes #8991, fixes #4446Araq2018-12-161-2/+2
|
* fixes #9153Araq2018-12-161-3/+3
|
* --gc:destructors: baby stepsAndreas Rumpf2018-12-151-4/+5
|
* hotfix: discriminants can be of size 8 bytes [backport]Araq2018-12-051-0/+1
|
* Fix fat pointers, object copying, magic double evals on JS (#9411) [backport]rec2018-12-041-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a test for issue #9389 * Fixes #9389. * Make object contructors copy objects properly by checking whether the expressions passed to them don't need to be copied. * Make mArrToSeq implementation actually check if a copy needs to be made. * Avoid unnecessary copy in mChr impl * Assume set constructor elements need no copy * Add a test for issue #9410 * Add a test * fix passing fat pointers (#9410) * Enhance tests * More tests and fixes * Add more (failing) tests [ci skip] * Added equality operator for fat pointers, more tests and fixes * Fix printing uninitialized strings * Fix mInc, mDec double eval, add more tests * Tests * Refactored, fixed multiple evals, revamped the tests, added missing ops * Fix ups * Fix #9643 and #9644 * add pointer normalization
* add: proc deepCopy*[T](y: T): T (#9740)Timothee Cour2018-11-281-0/+4
|
* fixes #9675Andreas Rumpf2018-11-261-1/+1
|
* fix segfault when calling shallow() on an empty string (#9782) [backport]Ștefan Talpalaru2018-11-221-0/+2
| | | | | | | | | shallow() casts its string argument to a seq and then tries to access its fields. Guess what happens when that string is nil, which seems to be the representation of an empty string (both the default value and an explicitly assigned ""). Segfault encountered when running "ntags -R ." on a large project. The relevant line: https://bitbucket.org/nimcontrib/ntags/src/a1c62c38e539877c105fbe4e08d06b76232f8017/ntags.nim#lines-125
* Empty check in shallow [backport] (#9676)ishowta2018-11-211-0/+1
|
* removes deprecated T/P typesAraq2018-11-161-4/+0
|
* Inline generic min and max - https://github.com/nim-lang/Nim/issues/9514 (#9688)Mamy Ratsimbazafy2018-11-141-2/+2
|
* NaN fixes for clang backend (#9652)Arne Döring2018-11-081-3/+3
|
* Nim devel is version 0.19.9Andreas Rumpf2018-11-031-1/+1
|
* system.nim: workaround for the fixed documentation generatorAraq2018-10-301-1/+1
|
* change system.nim to adhere to the style guideAraq2018-10-301-11/+11
|
* fixes #8603Araq2018-10-301-27/+29
|
* more examples for mod and div, plus corrections [ci skip]narimiran2018-10-281-5/+11
|
* Openmp parallel iterator improvements (#9493)Mamy Ratsimbazafy2018-10-251-2/+6
| | | | | * More flexibility in OpenMP pragma * Use static to constrain to compile-time annotation string * Update changelog with OpenMP change