flywind
33888a7384
[manual] TLock => Lock ( #19785 )
...
* [manual] TLock => Lock
* minor
2022-05-17 07:37:26 +02:00
Alfred Morgan
85bc8326ac
varargs example erroneously transformed "abc" to "def" ( #19781 )
2022-05-10 20:21:35 +08:00
Jake Leahy
832b8c5034
Fix link to experimental manual in macro pragmas section [skip ci] ( #19753 )
2022-05-03 10:08:39 +08:00
tersec
8e6136dd59
document localPassC consistently with compiler; fix ANSI capitalization ( #19721 )
2022-04-25 11:06:53 +02:00
Andrey Makarov
bb839029d5
Move common Latex code into class nimdoc.cls ( #19734 )
2022-04-21 15:06:09 -04:00
Leon
152dab0983
fix: Fix introductory macro examples ( #19706 )
...
Co-authored-by: adigitoleo <adigitoleo@dissimulo.com >
2022-04-09 17:51:44 +02:00
Omar Flores
86e93eb293
Fixed description as option in advopt.txt ( #19635 )
...
* Fixed formatting error in warningAsError.
There was only a single space character between the warning and its description, so it shows up as part of the name (in bold) and with no description.
Copied the way hotCodeReloading was formatted, with the description in a new line.
Also changed descriptions from 'ditto' to what the description it references says.
* Fixed typo in advopt.txt
Corrected 'hints' to 'warnings' in updated advopt.txt.
2022-03-26 09:56:10 +01:00
treeform
400e0260b8
Add more info for {.bycopy.} ( #18815 )
...
* Add more info for {.bycopy.}
See confusion here: https://github.com/nim-lang/Nim/issues/18807
I hope this will help people googling to find this.
* Update doc/manual.rst
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2022-03-24 07:35:29 +01:00
flywind
4c76f9f152
support useVersion:1.6 ( #19601 )
2022-03-10 17:01:27 +01:00
huantian
590d397852
Fix typo in Nim Tutorial pt3 ( #19579 )
2022-03-02 13:53:59 +08:00
tersec
f019e999d4
keep casing of noinit and noreturn pragmas consistently documented ( #19535 )
2022-02-18 16:06:11 +01:00
Sizhe Zhao
b2c5d7b4ff
Documentation: Fix word usage ( #19529 )
2022-02-14 22:15:59 +00:00
flywind
891329cd4b
move io out of system ( #19442 )
...
* move io out of system
* fix tests
* fix tests
* next step
* rename to syncio
* rename
* fix nimscript
* comma
* fix
* fix parts of errors
* good for now
* fix test
2022-02-02 17:10:11 +01:00
flywind
520881af9a
update outdated link ( #19465 )
...
Ref https://github.com/nim-lang/Nim/issues/19463
2022-01-28 21:08:38 -05:00
metagn
2bd1aa186e
New/better macro pragmas, mark some as experimental ( #19406 )
...
* New/better macro pragmas, make some experimental
fix #15920 , close #18212 , close #14781 , close #6696 ,
close https://github.com/nim-lang/RFCs/issues/220
Variable macro pragmas have been changed to
only take a unary section node.
They can now also be applied in sections with multiple variables,
as well as `const` sections. They also accept arguments.
Templates now support macro pragmas, mirroring other routine types.
Type and variable macro pragmas have been made experimental.
Symbols without parentheses instatiating nullary macros or templates
has also been documented in the experimental manual.
A check for a redefinition error based on the left hand side of variable
definitions when using variable macro pragmas was disabled.
This nerfs `byaddr` specifically, however this has been documented as
a consequence of the experimental features `byaddr` uses.
Given how simple these changes are I'm worried if I'm missing something.
* accomodate compiler boot
* allow weird pragmas
* add test for #10994
* remove some control flow, try remove some logic
2022-01-20 20:57:50 +01:00
flywind
d102b2f54c
deprecate unsafeAddr; extend addr ( #19373 )
...
* deprecate unsafeAddr; extend addr
addr is now available for all addressable locations, unsafeAddr is deprecated and become an alias for addr
* follow @Vindaar's advice
* change the signature of addr
* unsafeAddr => addr (stdlib)
* Update changelog.md
* unsafeAddr => addr (tests)
* Revert "unsafeAddr => addr (stdlib)"
This reverts commit ab83c99c50 .
* doc changes; thanks to @konsumlamm
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2022-01-16 11:08:38 +01:00
flywind
342b74ef70
move type operation section and remove deepcopy document ( #19389 )
...
ref #19173 ; because deepcopy is not fit for ORC/ARC which was used for spawn and spawn will be removed from compiler
2022-01-15 11:25:09 +01:00
Leon
a9135095f0
docs: Mention import foo {.all.} syntax ( #19377 )
...
Mention the `import foo {.all.}` syntax in the manual,
with a caveat about private imports.
Also link to the experimental importutils module.
Co-authored-by: adigitoleo <adigitoleo@dissimulo.com >
2022-01-13 14:40:27 +01:00
Nan Xiao
39a27783fc
docs: Fix typo in tut1.rst ( #19324 )
2022-01-04 10:42:21 +01:00
Nan Xiao
bd4f76a2e3
docs: Fix typo in tut1.rst ( #19309 )
2022-01-03 10:30:26 +01:00
hlaaftana
61d682e733
Allow full commands and blocks in type sections ( #19181 )
...
* allow full commands and blocks in type sections
* update grammar
* fix changelog [skip ci]
* more tests
* even more tests
2022-01-02 07:29:55 +01:00
rockcavera
ef634cc251
Update manual.rst ( #19301 )
2022-01-01 13:33:29 +01:00
Andreas Rumpf
a9223d4cdd
nep1: make header reflect reality ( #19294 )
2021-12-29 12:18:32 +01:00
Andreas Rumpf
a61bbf7d8d
fixes grammar typos [backport] ( #19289 )
2021-12-27 17:28:19 +01:00
Don-Duong Quach
610516e027
Fixed typo in manual.rst unsafeAssign->uncheckedAssign. Fixes part 1 of #19266 ( #19267 )
2021-12-17 20:58:31 +01:00
Nan Xiao
78b86b7942
basicopt.txt: Unify the format ( #19251 )
2021-12-14 09:54:01 +01:00
Ștefan Talpalaru
1a92edeb89
nimc.rst: fix table markup ( #19239 )
2021-12-11 05:15:44 +01:00
Andreas Rumpf
7ff43d07b2
added --nimMainPrefix switch; fixes #15955 ; refs #16945 [backport:1.6] ( #19235 )
2021-12-10 14:28:59 +01:00
Ștefan Talpalaru
69aabdab80
nimRawSetjmp: support Windows ( #19197 )
...
* nimRawSetjmp: support Windows
Using `_setjmp()` directly is required to avoid some rare (but very
annoying) exception-related stack corruption leading to segfaults on
Windows, with Mingw-w64 and SEH.
More details: https://github.com/status-im/nimbus-eth2/issues/3121
Also add "nimBuiltinSetjmp" - mostly for benchmarking.
* fix for Apple's Clang++
2021-12-10 06:31:29 +01:00
flywind
faacd63bf6
the title of PR should contain a brief description ( #19211 )
...
In addition to an issue number, the title of a PR should contain a brief description; then users can follow the progress more easily from the title.
2021-12-06 10:04:54 +01:00
hlaaftana
1ef945668d
treat do with pragmas but no parens as proc ( #19191 )
...
fixes #19188
2021-12-05 06:44:22 +01:00
PMunch
c658de24b0
Improve documentation around func and method ( #19207 )
...
* Improve documentation around func and method
* Update doc/tut1.rst
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Update doc/tut1.rst
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
* Update doc/tut1.rst
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
* Rewrite of Zooms suggestion
* Update doc/tut1.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: Zoom <ZoomRmc@users.noreply.github.com >
2021-12-04 07:54:11 +01:00
Andreas Rumpf
23c117a950
misc bugfixes [backport:1.2] ( #19203 )
2021-12-04 07:42:34 +01:00
Andreas Rumpf
a0073d2d4c
renamed 'gc' switch to 'mm'; [backport:1.6] ( #19187 )
...
* renamed 'gc' switch to 'mm'; [backport:1.6]
* better docs
2021-11-24 15:49:32 +01:00
hlaaftana
5933aece9b
caseStmtMacros no longer experimental, experimental manual refactor (#19173 )
...
* `caseStmtMacros` no longer experimental, experimental manual refactor
* Update doc/manual.rst
* apply review suggestions
* apply review
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-11-23 16:30:17 +01:00
Andrey Makarov
040d23e799
implement RST & Markdown quote blocks ( #19147 )
...
* implement RST & Markdown quote blocks
* compile with nim 1.0
* Fix indentation
2021-11-23 13:02:03 +01:00
Jaremy Creechley
7772ca303c
Implement threads on Zephyr ( #19156 )
...
* pthreads setup for zephyr
- enable tweak stack size
- update lib/system/threads.nim
- Fix int/uint in casting pointer.
* add documentation and tweak flag names
* add documentation and tweak flag names
* fix configuration flag names
* fix configuration flag names
* cleanup
Co-authored-by: Jaremy Creechley <jaremy.creechley@panthalassa.com >
2021-11-23 09:13:03 +01:00
hlaaftana
1b143f5e79
Accept nnkTypeSection from typedef macro pragmas ( #19168 )
2021-11-22 10:41:35 +01:00
Jaremy Creechley
92d6fb86c6
Enable customizing PageShift to set PageSize for embedded targets ( #19129 )
...
* Enable customizing PageSize (via PageShift).
This enables adjusting PageSize for embedded targets without abusing
cpu16.
* copy nimPageXYZ settings for mmpaptest
* add docs for Nim manual
* add docs for Nim manual
* docs tweaks
Co-authored-by: Jaremy Creechley <jaremy.creechley@panthalassa.com >
2021-11-16 20:30:07 +01:00
flywind
3aaa12dbe5
update manual ( #19130 ) [backport]
2021-11-12 07:59:48 +01:00
treeform
a78ee8ae84
Call {.cursor.} a pragma. ( #19116 )
...
* Call {.cursor.} a pragma.
Its hard to find .curser annotation while googling because all other things like it are called pragmas. See https://nim-lang.org/docs/manual.html#pragmas
Also the . in front of the name makes it hard to find and search for.
Can we just call it cursor pragma?
* Small fix for comment.
2021-11-10 08:52:34 +01:00
konsumlamm
46fb855425
Deprecate std/sharedlist and std/sharedtables ( #19112 )
2021-11-09 19:00:43 +01:00
Andrey Makarov
b21eb1ed36
change os.nim doc links to new style ( #19102 )
2021-11-08 13:10:01 +01:00
Kaushal Modi
dbbafd320c
manual: Document that comma propagates the default values of parameters ( #19080 )
...
* manual: Document that comma propagates the default values of parameters
Fixes https://github.com/nim-lang/Nim/issues/15949 .
* Use the "bug #NNNN" comment syntax for consistency
Ref:
https://nim-lang.github.io/Nim/contributing.html#writing-tests-stdlib
> Always refer to a GitHub issue using the following exact syntax: bug
for tooling.
2021-11-03 08:08:50 +01:00
Kaushal Modi
5fed1c05ce
manual: Document the use of static as a proc call ( #19084 )
...
* manual: Document the use of `static` as a proc call
Also adds tests.
Fixes https://github.com/nim-lang/Nim/issues/16987 .
* Update doc/manual.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Use the "bug #NNNN" comment syntax for consistency
Ref:
https://nim-lang.github.io/Nim/contributing.html#writing-tests-stdlib
> Always refer to a GitHub issue using the following exact syntax: bug
for tooling.
* manual: Undocument usage of foo.static
foo.static and foo.static() are not expected to work.
Ref: https://github.com/nim-lang/Nim/pull/19084/files#r741203578
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-11-03 06:48:30 +01:00
Derek 呆
24a7584299
update numbers of lifetime-tracking hooks in doc/destructors.rst ( #19088 )
2021-11-02 08:55:50 +01:00
Andrey Makarov
7ba2659f73
docgen: implement doc link resolution in current module ( #18642 )
2021-10-28 19:20:52 +02:00
Derek 呆
cd2b093d07
fix a tiny code snippet formatting issue in doc/constructors.rst, again ( #19065 )
2021-10-28 09:35:57 +02:00
Derek 呆
ee65767d44
fix a tiny formating issue in doc/destructors.rst ( #19058 )
2021-10-27 11:45:05 +02:00
quantimnot
3ecb369ca1
Document file changes that may be needed for add a new platform ( #19055 )
...
Co-authored-by: quantimnot <quantimnot@users.noreply.github.com >
2021-10-26 08:33:26 +02:00