Commit Graph

1720 Commits

Author SHA1 Message Date
Andreas Rumpf
2f213db7ee fixes #11225; generic sandwich problems; [backport:1.2] (#17255)
* fixes #11225; generic sandwich problems; [backport:1.2]
* progress
* delegating these symbols must be done via 'bind'
2021-03-09 20:19:24 +01:00
quantimnot
b2b23d723a Fix macros.quote custom op symbol interpolation. (#17256)
Provides a workaround/fix for #7589.
https://github.com/nim-lang/Nim/issues/7589

Updated docs and tutorial to reflect change.

Updated runnableExamples to include an example.

Co-authored-by: name <name@example.com>
2021-03-05 14:41:33 +01:00
flywind
e1cc3b83fb deprecate newruntime (#17245)
* deprecate newruntime
* tests
* Update compiler/commands.nim
2021-03-04 19:33:16 +01:00
flywind
a04c9d1f62 rename prepareStrMutation to prepareMutation (#17235)
* remove unnecessary when statement

* remove outdated codes

* rename prepareStrMutation to prepareMutation
2021-03-03 08:08:52 +08:00
Andrey Makarov
02f4464058 RST heading improvements (fix #17091) (#17195) 2021-03-02 16:41:10 +01:00
Timothee Cour
a0daa7a76d fix #16731: using deprecated flags triggers a warning (#17225)
* using deprecated flags triggers a warning
* cleanups
* fixup
* address comments
2021-03-02 13:07:05 +01:00
flywind
0efd969569 document copy on write behavior of string literals in arc/orc (#17224)
* Update doc/destructors.rst

Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2021-03-02 13:05:04 +01:00
Danil Yarantsev
4b53f697fa Remove the note about old naming conventions (#17222) 2021-03-02 10:26:07 +01:00
Danil Yarantsev
4f97898753 Follow NEP1 in NEP1 (#17221) 2021-03-02 02:23:47 +03:00
Timothee Cour
6c5872c169 --nilseqs is now a deprecated noop (#17211)
* --nilseqs is now a deprecated noop

* fix tests; fix: future => sugar
2021-03-01 20:59:43 +01:00
Danil Yarantsev
56461c280f Change stdlib imports to use std prefix in most examples (#17202) 2021-02-28 13:17:19 -08:00
Timothee Cour
e9f12dd89e document ; vs , for generic params (#17192) 2021-02-26 16:14:25 +01:00
Timothee Cour
c274e67198 add enumutils.items for sparse enums, typetraits.SomeSparseEnum (#17080)
* add enumutils.items for enum with holes
* changelog
* ref in lib.rst
* use `type SomeSparseEnum* = (not Ordinal) and enum` instead of concept
* address comment: rename back to enum with holes
2021-02-23 20:25:35 +01:00
Timothee Cour
74a8f23801 document type bound operators (#17063)
* document type bound rountines
* address comments
* Update doc/manual.rst

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2021-02-23 13:52:20 +01:00
Timothee Cour
5d95137ce0 remove tests/deps/ (#17132)
* remove tests/deps/

* fix tests

* fix tests/manyloc/keineschweine/lib/zlib_helpers.nim

* fixup
2021-02-23 13:31:53 +01:00
Timothee Cour
ef5303114c fix prelude regression refs #16238: include prelude doesn't interfere with nim doc (#17111)
* fix bug1 from #16238 nim doc now works with include prelude

* fix for windows

* fixup
2021-02-22 11:10:34 +01:00
Timothee Cour
4f10dde64a followup #17077: also use assert instead of doAssert for code-block rst blocks intended to be used as runnableExamples (#17122) 2021-02-21 23:44:32 +08:00
flywind
69a78c9183 promote std prefix in docs (#17128) 2021-02-20 22:38:29 -08:00
Timothee Cour
e94a3e5fcd move prelude so that include std/prelude also works (#17110)
* move prelude so that `include std/prelude` also works

* add test
2021-02-20 18:08:13 +01:00
Andrey Makarov
d1fec552d0 stricter checks for RST headlines (#17089) 2021-02-20 18:01:45 +01:00
flywind
1efaef52a2 [nep1] Use std prefix for standard library modules (#17105) 2021-02-19 15:47:03 -08:00
Timothee Cour
1018f51fce workaround #17091: manual.rst now renders as RST in github (#17092) 2021-02-19 15:35:34 +01:00
Timothee Cour
148e5ba2a5 contributing: prefer assert to doAssert in runnableExamples (#17077) 2021-02-18 13:19:38 -08:00
Timothee Cour
bbaa05dc82 followup #17065 (#17090) 2021-02-18 11:24:21 -08:00
Timothee Cour
8162c47b0f nep1: triple quote literals should start with newline (#17065) 2021-02-18 20:14:10 +01:00
KioriSun
f49d148a91 Fixing unexistant word in PT (#17070)
In line 289 it said PT =minino for cat. Cat in Portugues is Gato, like in spanish. minino sounds like a foreigner trying to pronounce menino, which means boy, not cat.
For variation's sake, my suggestion is to use the italian(IT) version Gatto, since it keeps in line with being close to ES, alternatively the german(DE) version Katze could be used instead.
2021-02-17 15:49:23 +01:00
Timothee Cour
b187caeb87 document since (#17048)
* document `since`
* address comment
2021-02-16 20:20:01 +01:00
Andrey Makarov
35bd39a9d0 RST: implement footnotes and citations (#16960)
* RST: implement footnotes and citations
* manual fixup of nimdoc.out.css
* remove unused code
* shorter printing code
* Update lib/packages/docutils/rst.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2021-02-15 14:12:40 +01:00
Timothee Cour
190fe36eba rst: single backticks now render correctly in both rst2html and github (#17028)
* rst: `` => `
* support default-role in rst2html
* update docstyle regarding single vs double backticks
2021-02-13 09:30:23 +01:00
flywind
18c24eb4d0 add system random to stdlib: std/sysrand (#16459) 2021-02-11 16:00:01 -08:00
Timothee Cour
897cb4b077 nep1: prefer a..b to a .. b except if b has an operator (eg: a .. -1) (#16992)
* nep1: prefer `a..b` to `a .. b` except if b has an operator

* address comments

* address comment
2021-02-10 12:13:28 +01:00
Andrey Makarov
635c0b6cb9 fix ./koch pdf command (#16989) 2021-02-09 22:46:51 +01:00
hlaaftana
aac8f67573 tests and docs for call operator (#16980)
* tests and docs for call operator

* fix leftover

* add extra dot test
2021-02-09 12:18:16 +01:00
Juan Carlos
68ef0c6c5b Deprecate any (#16920) 2021-02-08 19:21:17 -08:00
hlaaftana
6a7baff97d rename case statement macro from match to case (#16923)
* rename case statement macro from match to `case`

* fix test
2021-02-08 19:35:06 +01:00
Timothee Cour
534a95aee0 nep1: prefer self to this (#16927) 2021-02-04 14:09:53 +01:00
zetashift
fa9dc31899 fix #16885: nimdoc css warning (#16893)
* fix #16885

* Fixup nimdoc for the CSS filter change

* Use the same Nim devel versions

* Revert "Use the same Nim devel versions"

This reverts commit 8559308f9b.

* Revert "Fixup nimdoc for the CSS filter change"

This reverts commit 99ec00a4bd.

* Fixup nimdoc.out.css

Co-authored-by: zetashift <rishi2@laptop.localdomain>
2021-02-01 20:18:37 +01:00
Don-Duong Quach
206ad43cdc Updated nimsuggest doc to explain connection to nim compiler and use of config files (#16869) 2021-02-01 13:17:19 +01:00
narimiran
37a98c6c58 small fix in grammar.txt [ci skip] 2021-01-28 09:42:24 +01:00
Timothee Cour
e112974920 fix #16752: threadvar now works with importcpp types; osx now uses native 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
2021-01-27 22:35:43 +01:00
Elliot Waite
0436a7cffd Make small text changes in the docs (#16634)
* Fix broken links in docs

* Fix rand HSlice links

* Make small text changes in the docs

* Fix typo in contributing docs
2021-01-25 14:59:19 +01:00
konsumlamm
8395abab5f Small changes to std/sums (#16797) 2021-01-25 12:15:36 +01:00
Timothee Cour
eae3bdf8fe fix code-block (#16799) 2021-01-23 08:01:34 +01:00
Timothee Cour
8f62cd512c fix manual to reflect reality for .nosideeffect (#16781) 2021-01-22 20:04:48 +01:00
konsumlamm
72bbd07ec1 Add std/setutils to lib.rst (#16791)
* Add std/setutils to lib.rst

Improve doc comments for setutils

* Adhere to the RST spec

Use no UFCS in toSet
2021-01-22 13:13:18 +01:00
Timothee Cour
14730d9d64 fix noDecl => nodecl (#16760)
* fix noDecl => nodecl

* address comment

* disable flaky tests/stdlib/thttpclient.nim on freebsd
2021-01-20 11:08:42 +01:00
Clyybber
ccb11a63fb Reboot of #16195 (#16746)
* 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>
2021-01-20 11:05:56 +01:00
Timothee Cour
4fc7fcb775 --hintAsError (#16763)
* --hintAsError

* add test, changelog

* condsyms
2021-01-20 10:49:59 +01:00
narimiran
2bedb0fe2c add link to Nim Basics in tut1.rst [ci skip] 2021-01-20 09:15:20 +01:00
Andreas Rumpf
fbdf3f2ceb intsets are not deprecated 2021-01-19 19:07:36 +01:00