summary refs log tree commit diff stats
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* fix noDecl => nodecl (#16760)Timothee Cour2021-01-201-4/+4
| | | | | | | * fix noDecl => nodecl * address comment * disable flaky tests/stdlib/thttpclient.nim on freebsd
* Reboot of #16195 (#16746)Clyybber2021-01-201-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * fix #16185 * fix test * fix comment * fix comment * better approach * Add more tests and move sameLocation to injectdestructors * Better and more strict sameLocation * Small cleanup and preliminary spec clarification * Fix * Fix doc * Expand test Co-authored-by: Andrey R (cooldome) <ariabushenko@gmail.com>
* `--hintAsError` (#16763)Timothee Cour2021-01-201-2/+2
| | | | | | | * --hintAsError * add test, changelog * condsyms
* add link to Nim Basics in tut1.rst [ci skip]narimiran2021-01-201-2/+7
|
* intsets are not deprecatedAndreas Rumpf2021-01-191-1/+0
|
* Improve documentation for packedsets (#16715)konsumlamm2021-01-161-11/+15
| | | | | | | | | * Improve documentation for packedsets Add more runnableExamples Add deprecated pragma to intsets Replace intsets with packedsets in lib.rst * Apply suggested changes
* Deprecate TaintedString (#15423)Juan Carlos2021-01-153-24/+1
| | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* conservative approach to fix #15184 (#16723)Andrey Makarov2021-01-152-1/+19
|
* fix docs typo (#16637)flywind2021-01-122-2/+2
| | | | | | | * fix typo * fix typo * Update doc/astspec.txt
* fix syntax in macros documentation (#16604)n5m2021-01-061-1/+1
|
* Add short description on GC (#16535)Federico Ceratto2021-01-011-2/+7
|
* update contributing.rst (#16530)flywind2021-01-011-4/+4
| | | | | | | * update docs * Apply suggestions from code review * Update doc/contributing.rst
* improve examples in manual (#16497)flywind2020-12-291-1/+3
| | | | | | | | | | | | | * improve examples in manual * Update doc/manual.rst Co-authored-by: Clyybber <darkmine956@gmail.com> * Update tests/cpp/ttemplatetype.nim Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* Nil type check implementation (#15287)Alexander Ivanov2020-12-292-0/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Nil checking * Enable current older not nil checking again, run new checking only under flag, skip our test * Enable tests, work on try/except and bugs, fix notnil tests * Enable strictNotNil tests (currently with lowercase category) and add some expected output * Work on try/except/finally: still some things unclear and a lot of code can raise out of try * Fix the notnil build by going back to the old version of a test which I shouldn't have changed * Fix test : use action compile * Work on mutation and aliasing: not finished * Render var parititions graph, try to understand it, fix a nilcheck if bug * Rebase, progress on working with partitions * Improve time logic * Fix some bugs, use graph indices instead of symbol in nil map * Fix bugs, test simpler ident aliasing for now, support two mutation levels * Support ContentMutation and ReAssignment: for now just detect possible re assignment for var parameters of calls * Enable several simple passing tests * Cleanup a bit, fix condition/branch infix-related bug * Remove some files, address some comments by Araq * Use internalError and no quit for now * Separate tests with expected warnings and with expected ok, fix a bug with if with a single branch related to copyMap * Fix new data structures, bugs: make tests pass, disable some for now * Work on fixing errors with non-sym nodes, aliasing: tests fail * Work on alias support: simple set-based logic, todo more tests and ref sets? * Use ref sets: TODO can we think of handle seq-s similar to varpartitions' Araq ones * Handle defers in one place, stop raising in reverse to make an async test compile with strictNotNil, add a commented out test * Dot expressions: call/reassignment. Other refactorings and distinct, SeqOfDistinct support. Checkout an older varpartitions * Work on field tracking * Backup : trying to fix bugs when running some stdlib stuff for running an async test * Start a section about strict not nil checking in experimental manual * Fix experimental strict not nil manual section and move it to another file based on Araq feedback * Fix unstructured flow and double warning problems, fix manual, cleanup * Fix if/elif/else : take in account structure according to Araq feedback * Refactor a bit * Work on bracket expr support, re-enable tests, clarify in manual/tests/implementation static index support for now * Work on compiling stdlib and compiler with strictNotNil * Small fixes to the manual for strictNotNil * Fix idgen for strict check nil rebase * Enable some simple tests, remove old stuff, comment out code/print * Copy the original varpartitions source instead of my changes * Remove some files
* RST: implement admonitions (#16438)Andrey Makarov2020-12-271-0/+34
|
* Add docs for nnkHiddenStdConv (#16408)treeform2020-12-271-0/+11
| | | Add it to devel branch this time. I hope this works.
* Don't use `unittest.suite` and `unittest.test` (#16464)flywind2020-12-271-1/+1
|
* removing `out T` from docs since it no longer working (#16378) [backport]Code Hz2020-12-181-21/+10
| | | | | | | | | * remove `out T` from docs see https://github.com/nim-lang/Nim/issues/16131 * remove `out T` in title * remove entire paragraph
* Add note about minimum Node.js version (#16370)Maurizio Tomasi2020-12-161-0/+3
| | | Fix the error message
* Syntax (RST) fix Internals of the Compiler (#16341)Saem Ghani2020-12-151-6/+6
| | | | | 'Rebuilding the Compiler' and a few other sections required syntax fixes: * new lines before and after lists to fix rendering * use internal reference instead of Markdown style link
* Fix broken links in docs (#16336)Elliot Waite2020-12-143-5/+5
| | | | | * Fix broken links in docs * Fix rand HSlice links
* testament: error instead of silently ignore invalid targets; remove ↵Timothee Cour2020-12-141-3/+6
| | | | | | | | | | | pointless alias target vs targets; document matrix; DRY (#16343) * testament: error instead of silently ignore invalid targets * s/target/targets/ * fix test; refs #16344 * address comments * Update testament/specs.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* RST tables: fix latex col number; allow less than three of `=` (#16040)Andrey Makarov2020-12-041-2/+2
|
* styleCheck: Fix error for `sugar` and `std/with` (#16176)ee72020-12-021-1/+1
| | | | | | | | | | | | | | | | With this commit, we no longer see an error if we pass `--styleCheck:error` when compiling a file that contains `import sugar` or `import std/with`. The problem was that those modules (and only those modules) import `std/private/underscored_calls`, which contained a styleCheck issue: its spelling of `nnkArgList` didn't match the `nnkArglist` spelling in `macros.nim`. This commit fixes the issue by renaming `nnkArgList` to `nnkArglist` repo-wide. The other way around would be a breaking change for code that used `nnkArglist` and `--styleCheck:error`. Fixes: #16174
* fixed article duplication typos (#16216)ihlec2020-12-022-2/+2
|
* remove all mentions of doc2, jsondoc2 (except 1 mentioning the alias) (#15683)Timothee Cour2020-11-265-9/+9
|
* fix #16047 (#16066)Miran2020-11-201-1/+3
|
* fix numbering in contributing.rst (#16042)Timothee Cour2020-11-181-6/+4
|
* contributing docs: always mentioned referenced issues in PR body (#16038)Timothee Cour2020-11-181-3/+10
|
* defer: improve manual, clarify difference wrt try/finally (#16010)Timothee Cour2020-11-171-2/+31
|
* https://github.com/nim-lang/Nim/pull/15968/files#r523468677Juan Carlos2020-11-141-7/+1
|
* Fix #15806Juan Carlos2020-11-141-1/+2
|
* Fix #15806Juan Carlos2020-11-141-2/+3
|
* Fix #15806Juan Carlos2020-11-141-1/+2
|
* Fix #15806Juan Carlos2020-11-141-1/+30
|
* [docs minor]add some tips to intern.rst (#15967)Andreas Rumpf2020-11-141-2/+10
|\ | | | | | | | | * [docs minor]add some tips yo intern.rst * minor
| * minorflywind2020-11-141-1/+1
| |
| * [docs minor]add some tips yo intern.rstflywind2020-11-141-2/+10
| |
* | targets: use cpp instead of c++ everywhere (was by far the most common) (#15961)Timothee Cour2020-11-141-1/+1
| |
* | follow #8463 #14157 and document cstring literals modification is not ↵flywind2020-11-121-0/+14
| | | | | | | | | | | | | | | | | | allowed (#15878) * follow #8463 #14157 and document cstring literals * Update doc/manual.rst Co-authored-by: Juan Carlos <juancarlospaco@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* | nimdoc: items of ordered lists now have numbers instead of circlesnarimiran2020-11-111-1/+1
| |
* | remove `codeowners` [ci skip]narimiran2020-11-112-69/+1
| |
* | new: `nim -e:cmd` to run a command directly; also fixes #15731 (#15687)Timothee Cour2020-11-091-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * new: `nim -i cmd` * rename -i to -e (for eval); consistent with majority of other programing languages * `nim e -e:cmd` now works; bugfix: `echo cmd | nim e -` now works * honor --betterRun * address comments * --eval alias for -e (replaces undocumented --eval which was a noop) * --eval now defaults to e (nimscript) instead of r * address comment: remove -e, only keep --eval * address comment * fixup * Update compiler/nimconf.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* | Added [:T] syntax explanation to generics tutorial. (#15890)Aethylia2020-11-091-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added [:T] syntax explanation to generics tutorial. * Update doc/tut2.rst Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Update doc/tut2.rst Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Made second generics example runnable and added test line. * Update doc/tut2.rst * Update doc/tut2.rst * Update doc/tut2.rst Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* | improve Testament docs (#15881)n5m2020-11-091-4/+6
| | | | | | | | | | * fix mentions of recursive test discovery * document that {.fatal.} pragmas cannot be caught
* | include example of error-marked copy proc (#15886)n5m2020-11-091-1/+7
| | | | | | | | | | * include example of error-marked copy proc * Update destructors.rst
* | uint and uint64 is Ordinal type since nim 1.0.0 (#15873)flywind2020-11-071-3/+1
| |
* | Make `{.requiresInit.}` to work for distinct types (#15869)Ivan Bobev2020-11-061-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make `requiresInit` pragma to work for distinct types in addition to objects. Tagging of distinct types with `requiresInit` pragma was already supported, but its impact wasn't applied. Now its behavior when applied on distinct types is as follows. Given the following distinct type definitions: ```nim type DistinctObject {.requiresInit, borrow: `.`.} = distinct MyObject DistinctString {.requiresInit.} = distinct string ``` The following code blocks will fail to compile: ```nim var foo: DistinctFoo foo.x = "test" doAssert foo.x == "test" ``` ```nim var s: DistinctString s = "test" doAssert s == "test" ``` But these ones will compile successfully: ```nim let foo = DistinctFoo(Foo(x: "test")) doAssert foo.x == "test" ``` ```nim let s = "test" doAssert s == "test" ```
* | micro improvements (#15849)Andreas Rumpf2020-11-051-1/+1
| |
* | Clarify the sense in which Nim supports recursive iterators in the (#15834)c-blake2020-11-042-5/+42
| | | | | | manual, the tutorial, and the `tbintree` test.