summary refs log tree commit diff stats
path: root/lib/core
Commit message (Collapse)AuthorAgeFilesLines
* fix #14846; add macros.extractDocCommentsAndRunnables (#14849)Timothee Cour2020-07-011-0/+36
| | | | | | | | | * fix #14846; add macros.extractDocCommentsAndRunnables * fixup * update tests * address comment
* init checks and 'out' parameters (#14521)Andreas Rumpf2020-06-231-3/+4
| | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog
* add legacy workaround; improve test so that it actually tests for the bugfixTimothee Cour2020-06-191-3/+5
|
* Update tuple newLitsolo9892020-06-191-5/+12
|
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-171-6/+0
| | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
* remove compilerproc from `newIdentNode` (#14692)Timothee Cour2020-06-171-1/+1
|
* Update macros.nim (#14697)solo9892020-06-171-3/+2
|
* `addQuitProc` now works with closures, and c, js(node/browser) backend; fix ↵Timothee Cour2020-06-161-3/+10
| | | | | | | | | | | | | | | some bugs in testament (#14342) * make addQuitProc great again * fix bugs in testament * fix test * change 2016 => 2020 * addQuitProc => addExitProc + locks * move to std/exitprocs
* Update newLit set[T] to work when set is empty. (#14662)solo9892020-06-151-0/+4
| | | | | | | | | * Update macros.nim * Update lib/core/macros.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* remove tyOpt, mOpt (#14636)Timothee Cour2020-06-121-1/+1
| | | | | * remove tyOpt, mOpt * fixup
* simple typo in locks.nim (#14297)Andy Davidoff2020-05-111-1/+1
|
* move since from inclrtl to std/private/since (#14188)hlaaftana2020-05-021-0/+1
| | | | * move since from inclrtl to std/private/since * move since import in system below for HCR
* parseEnum_regression (#14150)cooldome2020-04-281-1/+1
| | | Co-authored-by: cooldome <ariabushenko@bk.ru>
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-4/+4
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* forward type alignment information to seqs (#12430)Arne Döring2020-04-191-7/+10
|
* Fix a 'See XXX' on documentation, clean out (#13820)Juan Carlos2020-03-311-2/+1
|
* add nnkMacroDef to RoutineNodes (#13676)Jasper Jenkins2020-03-171-1/+1
|
* add expectIdent to macros (#12778)Arne Döring2020-03-111-0/+7
| | | | | | | | | | | | | | | | * add expectIdent to macros * apply feedback * Update lib/core/macros.nim Co-Authored-By: Clyybber <darkmine956@gmail.com> * Update texpectIdent2.nim * Update texpectIdent1.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Remove dead magics (#13551)Arne Döring2020-03-031-1/+1
|
* Minor doc change in macros, future -> sugar (#13475) [ci skip]hlaaftana2020-02-241-1/+1
|
* expectLen now shows the length that we got (#13387)Clyybber2020-02-111-3/+3
|
* style fix: change 'JS' to 'js' to make it consistent (#13168)Miran2020-01-161-1/+1
|
* basename supports pragmaexpr (#13045)b3liever2020-01-071-2/+4
| | | | | | * basename supports pragmaexpr * update changelog
* ARC: cycle detector (#12823)Andreas Rumpf2019-12-174-518/+0
| | | | | | | | | | | | | * first implementation of the =trace and =dispose hooks for the cycle collector * a cycle collector for ARC: progress * manual: the .acyclic pragma is a thing once again * gcbench: adaptations for --gc:arc * enable valgrind tests for the strutils tests * testament: better valgrind support * ARC refactoring: growable jumpstacks * ARC cycle detector: non-recursive algorithm * moved and renamed core/ files back to system/ * refactoring: --gc:arc vs --gc:orc since 'orc' is even more experimental and we want to ship --gc:arc soonish
* ARC related bugfixes and refactorings (#12781)Andreas Rumpf2019-12-051-87/+0
|
* ARC: ported the GC tests over to --gc:arcAraq2019-11-261-0/+12
|
* more arc improvements (#12690)Andreas Rumpf2019-11-201-2/+5
| | | | | * ARC: bugfix for =destroy for inherited objects * added code useful for debugging
* gc:arc: support GC_ref/unref for ref TAraq2019-11-131-2/+13
|
* fixes #12644Andreas Rumpf2019-11-121-7/+10
|
* .cursor implementation (#12637)Andreas Rumpf2019-11-122-3/+3
| | | | | | | | | | | * cursors: first implementation * added currently failing test * .cursor works for doubly linked lists * make -d:useMalloc work again * added code to nil out refs in a destructor * it's now called --gc:arc * renderer.nim: render nkBreakState properly * make simple closure iterators work without leaking
* backtick and export marker handling in `eqIdent` (#12574)Arne Döring2019-11-071-6/+12
|
* newruntime: only check for dangling refs when 'owned ref T' support is enabledAndreas Rumpf2019-11-031-7/+8
|
* [backport] Add docs to better distinguish among getProjectPath, ↵Kaushal Modi2019-10-311-3/+23
| | | | | getCurrentDir and currentSourcePath (#12565) Fixes https://github.com/nim-lang/Nim/issues/10477.
* --gc:destructors now means Nim uses pure refcounting (#12557)Andreas Rumpf2019-10-301-4/+18
|
* Fix newLit for objects having string fields (#12542) [backport]zah2019-10-281-5/+5
|
* Prefer relative links for Nim documentationJjp1372019-10-221-2/+2
| | | | | | | | | | | This is more friendly to those browsing the documentation without a network connection. The nim-doc package in Debian allows this, for example. Also, the domain name being used was not consistent. It could have been either nim-lang.org or nim-lang.github.io, and those reading the stable docs could have found themselves suddenly reading the devel docs instead.
* fixes #12330 (#12331)Timothee Cour2019-10-021-1/+2
|
* Macro docs additions (#12270)Jasper Jenkins2019-10-011-123/+140
| | | | | | | | | | | | * small macros doc additions * more changes * fixes [ci skip] * capitalization, couple additions * nkNodeKind to nnkNodeKind
* macros.newLit now works for ref object types (#12307)zah2019-09-301-0/+6
|
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-1/+1
|
* Locks modules should give a compile error when threads are not enabled. (#12231)Ray Imber2019-09-262-0/+8
| | | | | | | | * Locks modules should give a compile error when threads are not enabled. * fix the compile flags to make the tests pass, or ignore files where necessary. * Fixed when statement to account for doc builds.
* last stdlib cleanupsAraq2019-09-212-0/+13
|
* lib\pure\htmlgen.nimAraq2019-09-212-116/+0
| | | | avoid callsite for htmlgen
* add nodeId proc to macros (#11456)Arne Döring2019-09-181-0/+6
| | | | | | | | * add nodeId proc to macros * add doc comment. * fix typo
* fixes a weird quote do regressionAndreas Rumpf2019-09-161-1/+1
|
* Allow ProcTy in addPragma and friends (#12158)Yuriy Glukhov2019-09-101-6/+12
|
* gc:destructors progressAraq2019-09-011-49/+0
|
* fixes #11833 (#12018)Andreas Rumpf2019-08-241-1/+1
|
* new gensym handling (#11985)Andreas Rumpf2019-08-231-2/+2
| | | | | | | | | | | * new .gensym implementation * make astspec test green again * introduce a --useVersion switch to group compatibility switches * fixes #10180 * fixes #11494 * fixes #11483 * object constructor fields and named parameters are also not gensym'ed * disabled broken package
* Implement isExported for symbols in macros (#11963)nc-x2019-08-181-0/+3
| | | | | | | | * Implement isExported for macros * Reimplement isExported using VM callback mechanism * VM does not support exceptions, use stacktrace() instead.