Andreas Rumpf
56a00da34a
fixes #12612 [backport] ( #12681 )
2019-11-19 12:09:36 +01:00
Arne Döring
03fa9a9041
fix regression in align ( #12680 )
...
* fix regression in align
* add test typesym without type
2019-11-19 09:58:47 +01:00
Andreas Rumpf
5278cf80eb
ARC: closure bugfixes ( #12677 )
...
* ARC: closure bugfixes
* progress
* ARC closures: create =hooks for captured parameters
* ARC: always destroy constructions like tuples, arrays properly, even in edge cases
* fixes a regression
2019-11-18 12:33:44 +01:00
Dominik Picheta
bab5351d43
Fixes ambiguity errors when evaluating Nimble files. ( #12674 ) [backport]
...
When trying to evaluate a Nimble file which imports a Nim module
I was getting the following errors for some reason:
```
/Users/dom/projects/nim/lib/pure/parseopt.nim(229, 46) Error: ambiguous call; both system.paramCount() [declared in /Users/dom/projects/nim/lib/system/nimscript.nim(65, 6)] and os.paramCount() [declared in /Users/dom/projects/nim/lib/pure/os.nim(2613, 8)] match for: ()
```
2019-11-18 09:26:06 +01:00
Andreas Rumpf
223e65e529
attempt to add valgrind support to the CIs and testament ( #12646 )
...
* attempt to add valgrind support to the CIs and testament
* valgrind (currently) works only on 64-bit Linux
2019-11-18 09:10:48 +01:00
Andreas Rumpf
58f3e07b1a
fixes and changes the recently introduced 'alignas' to be 'align' ( #12666 )
...
* fixes and changes the recently introduced 'alignas' to be 'align'
* more improvements
2019-11-15 20:24:14 +01:00
Juan Carlos
9c46526cfa
Fix htmlgen html lang ( #12668 ) [backport]
...
* Fix HTMLGen enable lang on html tag
2019-11-15 20:23:03 +01:00
Gampol T
83b7656c0e
fixes #12319 - change exception handling for finish.exe ( #12413 )
...
* documented behaviour of recv on bufferd socket
* fixes #12319- check exception using errorCode
2019-11-15 13:28:55 +01:00
Andreas Rumpf
76179cbec2
ARC: fixes leaking new() statement ( #12665 )
2019-11-15 12:38:11 +01:00
Miran
107b40f097
remove two asserts in int128.nim ( #12648 ) [backport]
...
Before this PR, `tests/misc/tconv.nim` fails when the compiler
is compiled without `-d:danger` flag.
Bear in mind that even without the asserts, the values outside of
a given range are still checked and a meaningful error message
(from `compiler/semexprs.nim`) is printed.
2019-11-15 12:37:43 +01:00
David Krause
ffca3eefb5
fix documentation of $*(dt: DateTime) ( #12660 )
...
(cherry picked from commit 39122ecd93 )
2019-11-15 08:06:26 +01:00
Andreas Rumpf
a14abc5708
ARC: solves phase ordering problems ( #12654 )
2019-11-14 23:19:18 +01:00
Araq
f22d3c75aa
ARC: closure inside object constructor now works
2019-11-13 23:29:21 +01:00
Araq
bcab3ed06c
ARC: handle closures like tuples consistently
2019-11-13 23:29:21 +01:00
Araq
3020e49b75
ARC: use the new .cursor annotation for 'up' pointers
2019-11-13 23:29:21 +01:00
Andreas Rumpf
6ad0238fd7
make tests green again
2019-11-13 23:29:21 +01:00
Araq
25c724d38b
gc:arc: support GC_ref/unref for ref T
2019-11-13 23:29:21 +01:00
Araq
eea0cb07cf
async: cleaner solution that avoids GC_ref on strings which doesn't exist for --gc:arc
2019-11-13 23:29:21 +01:00
narimiran
a1e7bf81b3
a better way to test Arraymancer
2019-11-13 16:25:43 +01:00
narimiran
8394c00300
remove long-deprecated 'mapIt'
2019-11-13 14:24:25 +01:00
Arne Döring
0496a666e2
implemented alignas pragma ( #12643 )
...
* implemented alignas pragma
* fix bootstrap
* generate c++ compatible syntax for alignas
* Make it work.
* Multiple alignof expressions. Implement top level alignof.
2019-11-13 08:22:41 +00:00
Andreas Rumpf
84861eb48a
fixes #12644
2019-11-12 23:56:19 +01:00
Andreas Rumpf
dfb020b174
.cursor implementation ( #12637 )
...
* cursors: first implementation
* added currently failing test
* .cursor works for doubly linked lists
* make -d:useMalloc work again
* added code to nil out refs in a destructor
* it's now called --gc:arc
* renderer.nim: render nkBreakState properly
* make simple closure iterators work without leaking
2019-11-12 15:05:36 +01:00
Euan
7e689873e2
Fix #12135 and #12109 ( #12137 )
...
* Fix #12135 and fix #12109 - fix OpenBSD type defs
* Fix Mode definition as in #12132
2019-11-11 16:18:08 +01:00
b3liever
0c4d81241a
Version of trimZeros without temp strings ( #12633 )
2019-11-11 12:54:17 +01:00
Araq
a4d43d7d0c
--gc:destructors: bugfixes
2019-11-09 20:34:51 +01:00
Araq
e835377d3f
inhibit silly warning about moving closure environments for performance
2019-11-09 20:33:23 +01:00
Andreas Rumpf
82e0765fc9
--gc:destructors improvements ( #12626 )
...
* do not cache the noDestructors transformation
* liftdestructor: improvements
* undo bugfix
2019-11-09 13:21:55 +01:00
Clyybber
144ad36974
Implemented outplace differently ( #12599 )
...
* implemented sugar.outplace; refs #12550
* Different approach, allows for chaining
2019-11-09 12:52:31 +01:00
Miran
6958248efe
fix #12519 : introduce OrderedTable.take, CountTable.del, CountTable.take ( #12600 )
...
* add OrderedTable.take
* add CountTable.del and CountTable.take
* add .since pragma to the introduced public procs
* add changelog entry [ci skip]
2019-11-08 16:35:27 +01:00
cooldome
1e71c13697
fix compilation warning ( #12618 )
...
* fix compilation warning
* comments incorporated
2019-11-08 09:16:44 +01:00
Volodymyr Lashko
4e841ab156
Fix crash in terminate handler ( #12572 ) [backport]
...
* fix undefined behavior in terminate handler
* fix failing unit test
* Revert "fix failing unit test"
This reverts commit 0e5e385fbf .
* Revert "fix undefined behavior in terminate handler"
This reverts commit 2b582871f1 .
* do not throw inside terminate handler with msvc < 1923
2019-11-07 22:00:34 +00:00
Andreas Rumpf
135e945ff0
make parsexml compatible with --gc:destructors/newruntime
2019-11-07 18:18:51 +01:00
Yanis Zafirópulos
76085e8a45
added support for openArray's for gcd and lcm ( #12621 )
2019-11-07 18:06:48 +01:00
Arne Döring
a2d6691af2
fix #12597 ( #12604 )
2019-11-07 17:16:34 +01:00
Judd
8b1ef8e07e
allow random module to be used in standalone: ( #12617 )
...
proc randomized*() uses time releated function which is not available on
standalone, so disable this function for standalone.
2019-11-07 14:48:33 +01:00
cooldome
e1b1759439
fixes #5050 ; fixes #11826 ( #12606 ) [backport]
2019-11-07 14:47:26 +01:00
Arne Döring
94675c2378
backtick and export marker handling in eqIdent ( #12574 )
2019-11-07 14:40:44 +01:00
Andreas Rumpf
372b01711e
added 'since' template for further stdlib additions
2019-11-07 14:20:39 +01:00
Andreas Rumpf
f69ee294c8
bugfix that enables the 'since' template [backport]
2019-11-07 14:20:39 +01:00
Andreas Rumpf
14a0182ca6
pragmas.nim: tiny code formatting
2019-11-07 14:20:39 +01:00
narimiran
0d00bde4ea
fix failing test
2019-11-07 11:04:41 +01:00
Andreas Rumpf
166048da5d
osproc needs 'import linux' for -d:useClone
2019-11-07 09:51:15 +01:00
Andreas Rumpf
230c618eb9
error message: Nim calls it 'proc'
2019-11-07 09:41:04 +01:00
Dominik Picheta
675189c77f
Merge pull request #12613 from nim-lang/miran-unused-imports
...
Remove unused imports
2019-11-06 22:08:43 +00:00
Andy Davidoff
5544a13236
restore --define 🔑 val in nim.cfg and fix #12367 ( #12611 )
2019-11-06 21:26:03 +01:00
Andy Davidoff
738c957e94
add --clearNimblePath; fixes #12601 ( #12609 )
2019-11-06 20:40:22 +01:00
narimiran
717da9f158
[backport] print more information for the previous commit
2019-11-06 16:14:28 +01:00
narimiran
5381c810a8
[backport] rewrite flaky runnable example
2019-11-06 15:54:21 +01:00
narimiran
c6a451c584
remove unused imports from tests
2019-11-06 14:35:45 +01:00