summary refs log tree commit diff stats
path: root/doc/manual.rst
Commit message (Collapse)AuthorAgeFilesLines
* followup custom literals (#17500)Timothee Cour2021-03-271-1/+1
|
* custom integer literals bugfixes (#17499)Andreas Rumpf2021-03-241-1/+5
| | | | | * custom integer literals bugfixes * make nimsuggest compile again
* custom integer literals (#17489)Andreas Rumpf2021-03-241-5/+49
| | | | | | | * user defined integer literals; refs #17020 * updated renderer.nim * use mlexerutils helper * imported all test cases from https://github.com/nim-lang/Nim/pull/17020 * final grammar updated
* make unary minus part of number literals, refs #17020 (#17488)Andreas Rumpf2021-03-241-5/+38
| | | | * make unary minus part of number literals, refs #17020 * fixes regression
* RST backtick refactor manual.rst (#17259)quantimnot2021-03-181-863/+863
| | | Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
* rename channels to channels_builtin (#17330)flywind2021-03-121-1/+1
| | | | | | | * improve test coverage for isolation * a bit better * rename channels to channels_builtin
* fix RST parsing when no indent after enum.item (fix #17249) (#17257)Andrey Makarov2021-03-121-7/+8
|
* fixes #11225; generic sandwich problems; [backport:1.2] (#17255)Andreas Rumpf2021-03-091-0/+44
| | | | | * fixes #11225; generic sandwich problems; [backport:1.2] * progress * delegating these symbols must be done via 'bind'
* Change stdlib imports to use std prefix in most examples (#17202)Danil Yarantsev2021-02-281-3/+3
|
* document `;` vs `,` for generic params (#17192)Timothee Cour2021-02-261-1/+6
|
* 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
|