Andreas Rumpf
350396e1ca
gc:destructors: more progress
2018-11-29 20:10:52 +01:00
Andreas Rumpf
7d82df20be
gc:destructors further progress
2018-11-29 01:13:32 +01:00
Timothee Cour
ab38c075f8
add: proc deepCopy*[T](y: T): T ( #9740 )
2018-11-28 08:46:22 +01:00
Andreas Rumpf
8990764709
some progress on --gc:destructors
2018-11-27 00:36:29 +01:00
Andreas Rumpf
413580bc04
new minor language feature: .noSideEffect blocks like .gcsafe blocks
2018-11-27 00:36:29 +01:00
pgkos
518c72e57a
fixes #9800 ( #9804 ) [backport]
...
* fixes #9800
* add tests for #9800
2018-11-26 18:59:24 +01:00
Emery Hemingway
ed8b4befbf
times: use clock_gettime for cpuTime with POSIX ( #9793 )
...
The POSIX 'clock()' procedure returns process CPU time in an
implementation specific unit, which for historical reasons can be as
large as ~7ms in the case of FreeBSD. Use 'clock_gettime' for higher
accuracy.
2018-11-26 17:00:17 +01:00
Andreas Rumpf
eb919c35b2
fixes #9675
2018-11-26 10:41:26 +01:00
Tomohiro
3a3ff76526
Add workingDir parameter to execProcess and test ( #9549 )
...
* Add workingDir parameter to execProcess
* Fix tests/stdlib/tosproc.nim compile error
* Suppress output from tosproc.nim
2018-11-26 10:28:44 +01:00
Jacek Sieka
87568830ab
Remove dead code ( #9777 )
...
* gc/gc2: remove unused ref counting stuff
* also removes some false threading support - hasSharedHeap is always
false in gc/gc2
* gc: remove some threading cruft
* remove asgnRefNoCycle
* compiler: remove TLoc.dup (unused)
2018-11-26 09:47:39 +01:00
Yuriy Glukhov
410fd1deae
Fixes 9716 [backport] ( #9790 )
...
* reuse temporary variable
* fixes #9716 [backport]
* Declare local vars in safer place
2018-11-24 10:50:48 +01:00
Dominik Picheta
47d0582ebf
Merge pull request #9548 from tonygparsehub/put-delete
...
fix #8777 add missing http methods in httpClient
2018-11-23 22:45:28 +00:00
Alexander Ivanov
88d707cb88
Support only some types as JsAssoc types ( #8627 )
2018-11-23 15:05:15 +01:00
Arne Döring
534601637a
more tests fixed
2018-11-23 11:58:29 +01:00
Arne Döring
9c2365d5c2
activated more tests, allow input in test spec
2018-11-23 11:58:28 +01:00
Arne Döring
e012eb1001
updated tests to be executed
2018-11-23 11:58:28 +01:00
Ștefan Talpalaru
f8fa94cb20
fix segfault when calling shallow() on an empty string ( #9782 ) [backport]
...
shallow() casts its string argument to a seq and then tries to access
its fields. Guess what happens when that string is nil, which seems to
be the representation of an empty string (both the default value and an
explicitly assigned "").
Segfault encountered when running "ntags -R ." on a large project. The relevant line:
a1c62c38e5/ntags.nim (lines-125)
2018-11-22 14:47:27 +01:00
alaviss
c7eba64dee
don't raise exception in the default handler ( #9783 )
...
fixes #9657
2018-11-22 14:46:07 +01:00
Timothee Cour
02351d02e7
universal toSeq: works with UFCS; works with inline & closure iterators, and with iterables ( #8711 )
...
* universal toSeq: works with UFCS; works with inline, closure, and proc
iterators, and also non-iterators
* support all iterables with toSeq
* workaround for #9130
2018-11-22 11:47:14 +01:00
cooldome
086676782a
Add isInstanceOf for generic procs to the macros module ( #9730 )
2018-11-21 21:30:03 +01:00
ishowta
6ff596d4f8
Empty check in shallow [backport] ( #9676 )
2018-11-21 11:56:38 +01:00
Oscar Nihlgård
b4a42386d9
Times module cosmetic changes ( #9770 )
2018-11-20 22:56:25 +01:00
Yuriy Glukhov
d146516008
Fixed wording ( #9761 )
2018-11-20 12:50:08 +01:00
Randy Smith
6c7abe6e5b
Fixes #9671 ( #9750 )
2018-11-19 09:22:21 +01:00
Flaviu Tamas
ebcf9406be
Improve nre documentation ( fixes #9470 )
2018-11-18 20:12:24 -05:00
Araq
3f6168b337
removes deprecated T/P types
2018-11-16 13:27:56 +01:00
Araq
4929f74023
fixes #9728
2018-11-16 11:30:34 +01:00
pgkos
4efbde84ee
Make getEnv case insensitive on Windows ( #9722 )
2018-11-16 08:45:50 +01:00
Araq
4bd9f32f33
--gc:destructors: hello world example compiles and runs
2018-11-16 00:13:49 +01:00
Araq
dd3e1cbc9b
make testament compile again with -d:nimCoroutines
2018-11-15 15:15:20 +01:00
Andreas Rumpf
632ec94b5d
gc_common: fixes a typo
2018-11-15 11:36:35 +01:00
Solitude
ae36dfb747
Add .46 as supported libssl version ( #9704 )
2018-11-15 09:04:30 +01:00
Mamy Ratsimbazafy
b65c0c336c
Inline generic min and max - https://github.com/nim-lang/Nim/issues/9514 ( #9688 )
2018-11-14 12:37:46 +01:00
Dominik Picheta
679a52f53c
Merge pull request #9687 from narimiran/fix-7192
...
export `asyncdispatch.callSoon` (fixes #7192 )
2018-11-13 21:12:19 +00:00
narimiran
c2b16b46ec
export asyncdispatch.callSoon ( fixes #7192 )
2018-11-12 15:40:33 +01:00
Denis Lisovik
8b4a910c91
fix split proc ignored maxsplit argument. Proc split didn't pass maxsplit argument to split iterator
2018-11-11 18:40:43 +03:00
narimiran
c0b5479e6b
coro: minor documentation fix [backport] [ci skip]
2018-11-11 10:16:32 +01:00
Lolo Iccl
37d88e5168
Add proc [](n: NimNode, s: HSlice[T, U]): seq[NimNode] to macros ( #7735 )
...
fixes #7670 .
2018-11-10 14:10:50 +01:00
Miran
964b5dac7c
complete future only once in or ( fixes #8982 ) ( #9632 )
...
* complete future only once in `or`
Analogous to `and`.
Credits to @k0zmo for proposing the solution.
* add test
2018-11-09 22:45:17 +00:00
Andreas Rumpf
8d850f7a69
deprecated ospaths ( #9665 )
2018-11-09 16:36:49 +01:00
Arne Döring
573d02760e
newLit works on enum ( #9662 )
...
* newLit works on enum
* remove debugging echo
2018-11-09 12:15:00 +01:00
Andreas Rumpf
130c218ff9
parseopt: remove confusing dead code
2018-11-09 09:03:28 +01:00
Andreas Rumpf
c0fc2f5726
fixes #9619
2018-11-09 09:03:28 +01:00
Araq
84ca9d2903
add new stdlib modules to the changelog
2018-11-08 20:52:22 +01:00
Araq
56f76c5b08
better implementation for wrapWords
2018-11-08 20:52:22 +01:00
Arne Döring
4f787ac4f4
fill region
2018-11-08 20:52:22 +01:00
Arne Döring
13defcc9f6
add doc string
2018-11-08 20:52:22 +01:00
Arne Döring
1d7c36bd8c
wordwrap stuff
2018-11-08 20:52:22 +01:00
Arne Döring
795d7e3217
WIP
2018-11-08 20:52:22 +01:00
Arne Döring
6a57ec6d2e
NaN fixes for clang backend ( #9652 )
2018-11-08 20:17:37 +01:00