Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add unsetControlCHook to remove a Ctrl-C hook after it was set (#7267) | Vindaar | 2019-01-10 | 1 | -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 Chandola | 2019-01-10 | 1 | -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ård | 2019-01-10 | 1 | -3/+4 |
| | |||||
* | ValueError now inherits from CatchableError (#10246) | Oscar Nihlgård | 2019-01-10 | 1 | -1/+1 |
| | |||||
* | add `isNamedTuple`; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) ↵ | Timothee Cour | 2019-01-08 | 1 | -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 Cour | 2019-01-05 | 1 | -28/+30 |
| | | | | * document that toInt, toBiggestInt round towards 0 and add runnableExamples * minor doc fixes | ||||
* | fix system.nim documentations (#10168) | alaviss | 2019-01-04 | 1 | -2/+2 |
| | | | | | * system: fix nimGC_getStackBottom doc * system/helpers: avoid leaking docs to system | ||||
* | fix bug in doAssertRaises when exception==Exception (#10172) | Timothee Cour | 2019-01-04 | 1 | -11/+19 |
| | | | | | * fix bug in doAssertRaises when exception==Exception * add testcase for doAssertRaises | ||||
* | [backport] correctly document `toInt`, fixes #2764 [ci skip] (#10176) | Miran | 2019-01-04 | 1 | -4/+6 |
| | |||||
* | Add {.noReturn.} to system.raiseAssert (#10161) | Oscar Nihlgård | 2019-01-02 | 1 | -1/+1 |
| | |||||
* | Dead code elimination for entire modules and their init procs if empty (#10032) | cooldome | 2018-12-30 | 1 | -6/+3 |
| | | | | | | * fixes #9798 * Change order of write modules * Move datInit calls ahead of initStackBottom | ||||
* | revives: Move typetraits.`$` to system. Fixes #5827 (#10071) | Timothee Cour | 2018-12-30 | 1 | -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 Cour | 2018-12-21 | 1 | -4/+4 |
| | |||||
* | Fixed insert for nil seq in js (#10068) | Yuriy Glukhov | 2018-12-21 | 1 | -1/+1 |
| | |||||
* | Add system.$(HSlice) and fix #7898 (#8670) | hlaaf | 2018-12-21 | 1 | -1/+11 |
| | | | | | | * Add system.$(HSlice) and fix #7898 * Surround system.$(HSlice) with spaces | ||||
* | fixes #9120 | Araq | 2018-12-16 | 1 | -1/+1 |
| | |||||
* | fixes #8991, fixes #4446 | Araq | 2018-12-16 | 1 | -2/+2 |
| | |||||
* | fixes #9153 | Araq | 2018-12-16 | 1 | -3/+3 |
| | |||||
* | --gc:destructors: baby steps | Andreas Rumpf | 2018-12-15 | 1 | -4/+5 |
| | |||||
* | hotfix: discriminants can be of size 8 bytes [backport] | Araq | 2018-12-05 | 1 | -0/+1 |
| | |||||
* | Fix fat pointers, object copying, magic double evals on JS (#9411) [backport] | rec | 2018-12-04 | 1 | -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 Cour | 2018-11-28 | 1 | -0/+4 |
| | |||||
* | fixes #9675 | Andreas Rumpf | 2018-11-26 | 1 | -1/+1 |
| | |||||
* | fix segfault when calling shallow() on an empty string (#9782) [backport] | Ștefan Talpalaru | 2018-11-22 | 1 | -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) | ishowta | 2018-11-21 | 1 | -0/+1 |
| | |||||
* | removes deprecated T/P types | Araq | 2018-11-16 | 1 | -4/+0 |
| | |||||
* | Inline generic min and max - https://github.com/nim-lang/Nim/issues/9514 (#9688) | Mamy Ratsimbazafy | 2018-11-14 | 1 | -2/+2 |
| | |||||
* | NaN fixes for clang backend (#9652) | Arne Döring | 2018-11-08 | 1 | -3/+3 |
| | |||||
* | Nim devel is version 0.19.9 | Andreas Rumpf | 2018-11-03 | 1 | -1/+1 |
| | |||||
* | system.nim: workaround for the fixed documentation generator | Araq | 2018-10-30 | 1 | -1/+1 |
| | |||||
* | change system.nim to adhere to the style guide | Araq | 2018-10-30 | 1 | -11/+11 |
| | |||||
* | fixes #8603 | Araq | 2018-10-30 | 1 | -27/+29 |
| | |||||
* | more examples for mod and div, plus corrections [ci skip] | narimiran | 2018-10-28 | 1 | -5/+11 |
| | |||||
* | Openmp parallel iterator improvements (#9493) | Mamy Ratsimbazafy | 2018-10-25 | 1 | -2/+6 |
| | | | | | * More flexibility in OpenMP pragma * Use static to constrain to compile-time annotation string * Update changelog with OpenMP change | ||||
* | stdlib: documenation updates, the exception names have been changed | Andreas Rumpf | 2018-10-25 | 1 | -5/+5 |
| | |||||
* | added system.typeof operation; fixes #9093 | Araq | 2018-10-24 | 1 | -0/+9 |
| | |||||
* | system.nim deprecate 'getRefcount'; refs #2839, refs #3713 | Araq | 2018-10-15 | 1 | -3/+6 |
| | |||||
* | system.nim: fixes typo | Araq | 2018-10-15 | 1 | -1/+1 |
| | |||||
* | implement sizeof and alignof operator (manually squashed #5664) (#9356) | Timothee Cour | 2018-10-14 | 1 | -2/+19 |
| | |||||
* | correctly render AST in doAssert/assert condition: fixes #8518; refs #9301 ↵ | Timothee Cour | 2018-10-14 | 1 | -6/+8 |
| | | | | | | (#9332) * fixes #8518; refs #9301; correctly render AST in doAssert condition | ||||
* | deprecate accumulateResult => sequtils.toSeq (#8666) | Timothee Cour | 2018-10-13 | 1 | -1/+4 |
| | |||||
* | Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. (#9316) | c-blake | 2018-10-12 | 1 | -0/+2 |
| | | | | | | | | | | | * Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. `ptr array[0,T]` for some unchecked type already works but A) `UncheckedArray` seems to be the intended future way for this kind of access, and B) essentially all use cases will have a `ptr` for that kind of array source and this call signature lets callers drop the trailing `[]` corresponding to that `ptr` deref. This PR relates to issue https://github.com/nim-lang/Nim/issues/9001 . * Add a test for toOpenArray() for UncheckedArray[T]s. | ||||
* | compile date and compile time tz written in doc (#9283) | eqperes | 2018-10-11 | 1 | -2/+2 |
| | |||||
* | Unchecked arrays now have their own type (#9267) | LemonBoy | 2018-10-10 | 1 | -1/+7 |
| | |||||
* | Separate high/low/len docs for each overload (#8816) | hlaaf | 2018-10-09 | 1 | -19/+99 |
| | |||||
* | development version is 0.19.1 | Araq | 2018-10-09 | 1 | -1/+1 |
| | |||||
* | update version to 0.19 | Andreas Rumpf | 2018-09-25 | 1 | -2/+2 |
| | |||||
* | .error for routines now can also have a custom error message; improve error ↵ | Araq | 2018-09-25 | 1 | -2/+10 |
| | | | | message for 'nil' strings | ||||
* | Implements the equals operator for openarray | Zahary Karadjov | 2018-09-18 | 1 | -0/+10 |
| | |||||
* | documents system.cmp's platform specific behaviour; fixes #8930 | Araq | 2018-09-15 | 1 | -0/+2 |
| |