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
Tor Arvid Lund
5ccbf7e3cf
[backport] doc/tut3.rst: Fix typo in Introduction ( #12607 ) [ci skip]
...
Derivative of `b*pow(x, 2)` is `2*b*x`, while old version had `2*a*x`
2019-11-06 13:42:39 +01:00
narimiran
cc3e9ca164
remove unused imports
2019-11-06 12:01:00 +01:00
Andy Davidoff
61889c604a
export nim.cfg parser ( #12602 )
2019-11-06 09:59:23 +01:00
Federico Ceratto
59c212607e
[backport] Add links to packaging and distro pages ( #12603 ) [ci skip]
2019-11-06 09:03:28 +01:00
Araq
d19206755b
async: use $ and not repr in debug mode
2019-11-05 17:10:02 +01:00
Araq
1794cd477d
expr -> untyped
2019-11-05 16:55:08 +01:00
jiro
0694bd47b9
Add or detectOs(Manjaro) ( #12587 ) [backport]
...
Using `pacman` command in Manjaro Linux
(cherry picked from commit 1ff3494dab )
2019-11-05 16:21:28 +01:00
Andreas Rumpf
3ba3307d61
remove deprecated procs ( #12535 )
2019-11-05 11:05:46 +01:00
Miran
ffa9a7405f
fix #8242 , fix #12586 : fix 'formatFloat' with 'precision = 0' ( #12592 )
...
* fix #8242 , fix #12586 : fix 'formatFloat' with 'precision = 0'
'formatFloat' with 'precision = 0' now gives the same result
(a number without a decimal point) in all backends.
This is compatible with Python's formatters, too.
* fix failing tests
* add changelog entry
* add version switch
2019-11-05 10:31:23 +01:00
Andreas Rumpf
46af8164c0
implement the --useVersion emulation feature
2019-11-04 21:58:26 +01:00
Kaushal Modi
b24560a140
Make sequtils.zip return seq of anonymous tuples ( #12575 )
...
* Make sequtils.zip return seq of anonymous tuples
Earlier the tuples had named fields "a" and "b" and that made it
difficult to assign the zip returned seqs to other vars which expected
seqs of tuples with field names other than "a" and "b".
* Make sequtils.zip backwards compatible with Nim 1.0.x
2019-11-04 21:11:43 +01:00
Clyybber
cf5c3f2400
Fixes #12379 ( #12591 ) [backport]
2019-11-04 20:57:14 +01:00
alaviss
558ecd1ca6
compiler/suggest: add variable support to con ( #12569 )
...
This allows for the type of a variable to be retrieved.
2019-11-04 18:29:26 +01:00
Miran
ae32d637f7
[backport] fix #12395 ( #12590 )
...
'countBits32' is now fixed in the same way that
'countBits64' was already patched earlier (by adding 'u32
where needed).
2019-11-04 15:02:36 +01:00
Arne Döring
992f0a7756
fix conversions to uint in varints.nim ( #12564 )
2019-11-04 13:06:08 +01:00
Andreas Rumpf
62fc3db9d7
--os:ios needs to imply defined(macosx) [backport] ( #12585 )
2019-11-04 13:05:03 +01:00
narimiran
bdc2bcc36c
NimPatch of devel version should be an odd number because of the earlier hacks
2019-11-03 16:04:21 +01:00
Andreas Rumpf
3f4b9971fc
newruntime: only check for dangling refs when 'owned ref T' support is enabled
2019-11-03 09:46:49 +01:00
Juan Carlos
4c9a7e6f00
JS improve indent ( #12581 )
...
* JSgen make indent be all spaces, instead of mixed spaces and tabs, for generated JS
2019-11-03 08:03:03 +01:00
Andreas Rumpf
ceda586d88
fixes #12577 [backport] ( #12584 )
2019-11-03 07:55:55 +01:00
Tomohiro
4e0f12092e
Fixes #12536 ( #12568 ) [backport]
2019-11-02 08:21:49 +01:00
Andreas Rumpf
44a27ccfe1
--gc:destructors: simple closures work
2019-11-02 00:39:04 +01:00
Andreas Rumpf
7a4d066102
make renderIds work again
2019-11-01 21:02:44 +01:00
Andreas Rumpf
3761e62fde
improve codegen quality for --gc:destructors
2019-11-01 09:59:18 +01:00
Kaushal Modi
d914e9a65f
[backport] Add docs to better distinguish among getProjectPath, getCurrentDir and currentSourcePath ( #12565 )
...
Fixes https://github.com/nim-lang/Nim/issues/10477 .
2019-10-31 21:00:18 +01:00
Arne Döring
99078d80d7
introduce csize_t instead of fixing csize ( #12497 )
2019-10-31 19:18:12 +01:00
genotrance
0c7b6c9c15
Switch mingw links ( #12561 )
2019-10-31 11:13:32 +01:00
Andreas Rumpf
79a262d6e9
better testing for nimcrypto; re-enable chronos testing ( #12560 )
2019-10-31 07:18:45 +01:00
Andreas Rumpf
1746da2d9e
--gc:destructors now means Nim uses pure refcounting ( #12557 )
2019-10-30 16:15:17 +01:00