summary refs log tree commit diff stats
path: root/doc/manual.rst
Commit message (Collapse)AuthorAgeFilesLines
* document type bound operators (#17063)Timothee Cour2021-02-231-0/+42
| | | | | | | * document type bound rountines * address comments * Update doc/manual.rst Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* promote std prefix in docs (#17128)flywind2021-02-201-17/+17
|
* workaround #17091: manual.rst now renders as RST in github (#17092)Timothee Cour2021-02-191-7/+8
|
* Deprecate any (#16920)Juan Carlos2021-02-081-1/+0
|
* fix #16752: threadvar now works with importcpp types; osx now uses native ↵Timothee Cour2021-01-271-0/+13
| | | | | | | | | | | TLS (`--tlsEmulation:off`), which can be orders of magnitude faster (#16750) * osx now uses native TLS, which can be orders of magnitude faster * add {.cppNonPod.} * improve test * changelog, docs, disable part of windows test
* Make small text changes in the docs (#16634)Elliot Waite2021-01-251-113/+116
| | | | | | | | | * Fix broken links in docs * Fix rand HSlice links * Make small text changes in the docs * Fix typo in contributing docs
* fix code-block (#16799)Timothee Cour2021-01-231-1/+1
|
* fix manual to reflect reality for .nosideeffect (#16781)Timothee Cour2021-01-221-6/+25
|
* fix noDecl => nodecl (#16760)Timothee Cour2021-01-201-4/+4
| | | | | | | * fix noDecl => nodecl * address comment * disable flaky tests/stdlib/thttpclient.nim on freebsd
* conservative approach to fix #15184 (#16723)Andrey Makarov2021-01-151-1/+1
|
* 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>
* 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
* Fix broken links in docs (#16336)Elliot Waite2020-12-141-2/+2
| | | | | * Fix broken links in docs * Fix rand HSlice links
* fixed article duplication typos (#16216)ihlec2020-12-021-1/+1
|
* 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
|
* 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>
* 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" ```
* Clarify the sense in which Nim supports recursive iterators in the (#15834)c-blake2020-11-041-3/+40
| | | manual, the tutorial, and the `tbintree` test.
* Massive documentation fixes + copy editing (#15747)Yanis Zafirópulos2020-10-291-182/+175
|
* Fix #13609 (#15567)Gampol T2020-10-211-0/+11
| | | | | | | | | | | | | * add documentation that discardable pragma cannot use on template * Update doc/manual.rst Co-authored-by: Euan <euantorano@users.noreply.github.com> * Update doc/manual.rst Co-authored-by: Euan <euantorano@users.noreply.github.com> Co-authored-by: Euan <euantorano@users.noreply.github.com>
* more "eg" fixesnarimiran2020-10-201-1/+1
|
* implements https://github.com/nim-lang/RFCs/issues/260 (#15505)Andreas Rumpf2020-10-071-0/+8
| | | | | * implements https://github.com/nim-lang/RFCs/issues/260 * added a test case
* implements https://github.com/nim-lang/RFCs/issues/258 (#15503)Andreas Rumpf2020-10-061-4/+4
| | | | | | | | | * implements https://github.com/nim-lang/RFCs/issues/258 * don't be too strict with custom pragma blocks * cast pragmas: documentation * added most missing inference query procs to effecttraits.nim
* spec for view types (#15424)Andreas Rumpf2020-09-291-4/+4
| | | | | | | | | | | * spec for view types * spec additions * refactoring; there are two different kinds of views * refactorings and spec additions * enforce that view types are initialized * enforce borrowing from the first formal parameter * enforce lifetimes for borrowing of locals * typo in the manual * clarify in the implementation what a borrow operation really is
* add `enumerate` macro (#15297)Miran2020-09-221-5/+6
| | | | | | | * add `enumerate` macro * address the comments * put `enumerate` in its own module
* Methods docs improvement (#15338)flywind2020-09-161-5/+31
| | | | | * docs improvement * minor
* [ci skip] fix typo in the manualnarimiran2020-09-091-2/+2
|
* "for-loop macros" are no longer an experimental feature (#15288)Miran2020-09-081-0/+42
|
* Fix #5691 (#15158)Clyybber2020-08-271-18/+7
| | | | | | | | * Fix #5691 * Cleanup and thoughts * Use scope approach * Seperate defined/declared/declaredInScope magics * Fix declaredInScope * Update spec accordingly
* Added array type definition to manual (#15173)Ico Doornekamp2020-08-101-0/+3
| | | Co-authored-by: Ico Doornekamp <git@zevv.nl>
* Minor improvements to typecast section of manual (#14896)awr12020-07-071-7/+18
| | | | | | | * Minor improvements to typecast section of manual * Clarification to casting w/ concrete types * Added less ambiguous language
* {.deprecated: [existsFile: fileExists].} (#14735)Timothee Cour2020-07-021-2/+2
| | | | | | | | | * {.deprecated: [existsFile: fileExists].} * s/existsFile/fileExists/ except under deps * workaround pending #14819 * fix test
* Fix some typos (#14843)Danil Yarantsev2020-06-281-1/+1
|
* Warn about calling wrappers at compile time until #14049 is fixed. (#14828)Sizhe Zhao2020-06-271-1/+4
|
* init checks and 'out' parameters (#14521)Andreas Rumpf2020-06-231-11/+21
| | | | | | | | | | | * 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
* Deprecate unroll pragma, remove from documentation (#14705)Juan Carlos2020-06-191-19/+0
|
* Change 'Future Directions' to link memory management documentation (#14664)Juan Carlos2020-06-151-2/+2
|
* Clarify imported exceptions note in manualDominik Picheta2020-06-131-1/+1
|
* manual: removed subjective phrase from 'macros' section (#14536)Ico Doornekamp2020-06-011-2/+1
| | | | | | Removed phrase "However, this is no real restriction because Nim's syntax is flexible enough anyway." from the manual - I find it very subjective, and I sometimes *do* find myself restricted by Nim's syntax when writing DSLs
* spec: be explicit that NRVO will evolve furtherAraq2020-05-301-0/+4
|
* document NVRO and exception handlingAraq2020-05-301-0/+65
|
* Add thiscall calling convention, mostly for hooking purpose (#14466)Huy Doan2020-05-271-0/+4
| | | | * Add thiscall calling convention, mostly for hooking purpose * add changelog and documentation
* manual.rst: updates [backport] (#14445)Andreas Rumpf2020-05-251-23/+24
|
* Fix some typos in the manual [backport] (#14399)Danil Yarantsev2020-05-201-10/+10
|