Andreas Rumpf
6278b5d89a
new-style concepts implementation, WIP ( #15251 )
...
* fixes #15210 [backport:1.2]
* make tests green
* make ordinal work
* makes Swapable test compile
* make Indexable example work
* concepts: 'self' is now 'Self'
* concepts: make Dictionary example compile
* document the new concept implementation
* concepts: make typeDesc work properly
* concepts: allow documentation comments (d'oh)
2021-02-24 13:17:33 +01:00
flywind
3f38f8fbb7
add strbasics.strip ( #16280 )
2021-02-24 10:22:47 +01:00
flywind
46bd222c89
[stdlib] make cookies module modern ( #17116 )
...
* update cookies module
* introduce sameSite.Default
Co-authored-by: hlaaftana <10591326+hlaaftana@users.noreply.github.com >
2021-02-24 10:14:19 +01:00
Andreas Rumpf
b48a32053f
fixes yet another SSL problem on Windows [backport:1.2] ( #17167 )
2021-02-24 10:12:47 +01:00
flywind
47c078e29c
use single backtick ( #17166 )
2021-02-23 21:05:39 -08: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
b1a3651ae4
fix UnusedImport for nim c compiler/nim ( #17152 )
2021-02-23 10:40:40 +01:00
Saem Ghani
7c2ac98880
Fixes #17039 - ldObj checks node/nodeAddr access ( #17123 )
...
Checked field expressions, such as an object variant field access results in
occasionally broken address analysis crashing the VM. This guard added here
mimics guarded access in ldObjAddr as well. This is to prevent a crash, while a
fix is devised.
2021-02-23 09:02:06 +01:00
Danil Yarantsev
4e619a6bea
A few rst doc fixes ( #17151 )
...
* Fix a couple of rst formatting issues
* no need for the extra space
2021-02-23 08:59:13 +01:00
Timothee Cour
ce7caec4b3
add io.readChars overload (simpler, less error prone) ( #16044 )
...
* add simpler to use readChars overload
* use new readChars overload
* Update lib/wrappers/openssl.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: flywind <xzsflywind@gmail.com >
2021-02-22 20:13:08 +01:00
konsumlamm
a1f4113705
Improve the ropes module ( #17145 )
...
* Improve ropes module
Improve wording
Update runnableExamples
Add index bound check for `[]`
Minor format changes
* Update tests/stdlib/tropes.nim
Run on C & JS target
Test in VM
Add tests for `[]`
2021-02-22 19:58:37 +01:00
rockcavera
d76d79336f
fix #15215 ( #17142 )
...
* fix 15215
* fix test
* end line
* Update tests/stdlib/tnetconnect.nim
Co-authored-by: flywind <xzsflywind@gmail.com >
* Update lib/pure/net.nim
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2021-02-22 17:40:57 +01:00
Saem Ghani
2aba116bbc
when statements branches exit early ( #17143 )
...
When statement branches exit early outside of nimvm. In nimvm it seems that all
sides of the branches must be evaluated as the code gen happens at a later
stage, this remains intact.
2021-02-22 12:27:23 +01:00
konsumlamm
05711d95e0
Add example for pattern matching on options ( #17120 )
...
* Add example for pattern matching on options
* Use code-block
* Apply suggestions
* Use block comments
* Fix example
2021-02-22 11:16:15 +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
flywind
f07a072691
[JS + docs] improve std/monotimes module ( #17103 )
2021-02-22 11:09:25 +01:00
Timothee Cour
55a33e1664
testament: support disabled:osx as alias to disabled:macosx ( #17124 )
2021-02-22 11:01:15 +01:00
Andrey Makarov
fab1618eb4
make rst.nim use object variant ( #17138 )
...
* make rst.nim use object variant
* add workaround
* fix mistake
2021-02-22 11:00:31 +01:00
flywind
f26c25737c
remove outdated codes ( #17140 )
...
* remove unnecessary when statement
* remove outdated codes
2021-02-22 09:40:11 +01:00
flywind
32bf10126c
fix #17118 ( #17119 ) [backport:1.2]
...
* fix js unsigned integer
* Use `std` prefix for standard library modules
* fix #17118
2021-02-22 09:14:18 +01:00
Timothee Cour
cde950e1bc
make copySign for js consistent with other backends ( #16609 )
...
* make copySign work more robustly in js
* improve tests
* improve tests/vm/tcastint.nim
2021-02-22 08:47:00 +01:00
Timothee Cour
04b1120334
important_packages: document that packages tested should ideally have recent release tags ( #17134 )
2021-02-22 11:55:20 +08:00
flywind
4556901572
use single backtick ( #17141 )
2021-02-21 19:53:28 -08: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
Clyybber
6b7a6f8c54
Split last read and first write analysis ( #17137 )
...
* Split last read and first write analysis
This improves performance by 10% for some
cases.
* Remove outdated comments
2021-02-21 16:20:05 +01:00
flywind
146beb2797
remove unnecessary when statement ( #17135 )
2021-02-21 11:17:25 +01:00
flywind
70ec17eede
use single backtick ( #17133 )
2021-02-21 00:27:39 -08:00
flywind
69a78c9183
promote std prefix in docs ( #17128 )
2021-02-20 22:38:29 -08:00
flywind
778f124af0
disable chronos ( #17131 )
2021-02-20 22:25:36 -08:00
Timothee Cour
ac82be07d8
refs #17107 use 2 instead of 3 parallel jobs for openbsd ( #17108 )
2021-02-20 18:08:53 +01: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
konsumlamm
bd199a8d31
Improve the strformat module ( #17106 )
...
* Improve the strformat module
Improve documentation
Use runnableExamples
* Fix overflow error for low(int64)
Add test
* Use assert in runnableExamples
* Improve tstrformat
Put tests in proc & test VM
Put tests in blocks
Add c, js targets
* Use doAssert in tests
* Disable JS & VM tests
2021-02-20 18:06:29 +01:00
Timothee Cour
6b3bdd798d
enable bsd for tsetutils; improve setutils API ( #17098 )
2021-02-20 18:02:57 +01:00
Timothee Cour
cbbb6ca4d7
important_packages: add fusion ( #17094 )
2021-02-20 18:02:10 +01:00
Andrey Makarov
d1fec552d0
stricter checks for RST headlines ( #17089 )
2021-02-20 18:01:45 +01:00
Timothee Cour
0fcf1af765
uri: document removeDotSegments, add tests, show failure modes ( #17064 )
...
* uri: document removeDotSegments, add tests, show failure modes
* address comments
2021-02-20 17:58:54 +01:00
flywind
a1a18cfe66
use single backtick ( #17115 )
2021-02-20 03:20:29 -08:00
flywind
1efaef52a2
[nep1] Use std prefix for standard library modules ( #17105 )
2021-02-19 15:47:03 -08:00
Miran
da52e81327
[backport:1.2] update nimble commit hash ( #17109 )
2021-02-19 20:33:01 +01:00
Timothee Cour
1018f51fce
workaround #17091 : manual.rst now renders as RST in github ( #17092 )
2021-02-19 15:35:34 +01:00
flywind
69611ee487
Ref #12700 add testcase ( #17096 )
...
* fix js unsigned integer
* better
* ref #12700 add testcase
2021-02-19 14:09:12 +01:00
Andreas Rumpf
4395a26764
fixes #17085 [backport:1.2] ( #17101 )
2021-02-19 12:30:39 +01:00
flywind
c1a06bd56e
close #13859 ; add testcase ( #17099 )
...
* fix js unsigned integer
* better
* close #13859 ; add testcase
2021-02-19 11:36:35 +01:00
alaviss
ccc0667c29
system/excpt: let the OS handle termination on signal ( #16712 )
2021-02-19 00:29:21 -08:00
dawidkotlin
95664e1524
add example of hashing an object by all of its fields with fields ( #16643 )
...
* add example of hashing an object by all of its fields with `fields`
* Update lib/pure/hashes.nim
* Update lib/pure/hashes.nim
* Update lib/pure/hashes.nim
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
Co-authored-by: Timothee Cour <timothee.cour2@gmail.com >
2021-02-19 07:59:33 +01:00
flywind
9450bf6c08
use single backtick ( #17100 )
2021-02-18 22:47:21 -08:00
Jason Beetham
35ded02074
Add setutils.complement, setutils.fullSet ( #17066 )
2021-02-18 17:33:28 -08:00
Timothee Cour
148e5ba2a5
contributing: prefer assert to doAssert in runnableExamples ( #17077 )
2021-02-18 13:19:38 -08:00