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
Juan Carlos
b5bb581642
Improve Math.Trunc code emit on JS, had weird whitespaces and indents ( #12549 )
2019-10-30 14:12:17 +01:00
Nindaleth
34dbc5699e
fix several typos in documentation and comments ( #12553 )
2019-10-30 09:08:45 +01:00
Araq
1214960a1b
fixes #12547 [backport]
2019-10-29 15:07:04 +01:00
zah
de5f6a07c2
Fix newLit for objects having string fields ( #12542 ) [backport]
2019-10-28 22:45:55 +01:00
Araq
44b1ecc287
destructors.rst: added a missing 'var' to the motivating example
2019-10-28 18:15:17 +01:00
Andreas Rumpf
e58c2d261c
[backport] fix #12528 , fix #12525 : incorrect generic type resolution for default values ( #12538 )
2019-10-28 16:56:38 +01:00
Andreas Rumpf
c52a2c3ab0
proof that refcounting can handle Nim's async ( #12533 )
2019-10-28 16:13:38 +01:00
Solitude
160c07be00
Fix code style errors ( #12545 )
2019-10-28 15:21:10 +01:00
Anthon van der Neut
c58aa7705d
[backport] fix broken link to non-existing c2nim manual html, fixes #12537 [ci skip] ( #12544 )
2019-10-28 13:51:43 +01:00
Tomohiro
90376940bb
Add a changelog entry related to PR #11748 [ci skip] ( #12541 )
2019-10-28 13:29:13 +01:00
Jjp137
ee119f7984
colors: fix 'mix' template and make most examples runnable ( #12532 ) [backport]
...
* colors: fix the 'mix' template
* colors: make most examples runnable
2019-10-28 13:11:11 +01:00
Artem V L
580462c886
splitPath() behavior synchronized with splitFile() ( #12481 )
...
* splitPath() behavior synchronized with splitFile() having the expected behavior in all languages
splitPath() docstrings update, tests added for both splitPath() and splitFile()
* Path splitting refined and described
2019-10-28 12:58:02 +01:00
Tomohiro
a9d7796e1c
[feature]strformat: add 2 'fmt' macros that use specified characters instead of '{}' ( #11748 )
...
* [feature]strformat: add 2 'fmt' macros that use specified chars instead of '{}'
* strformat: revert documentation comments of `&` and 'fmt'
* strformat: removed single open/close char variant of fmt
2019-10-28 12:33:44 +01:00
Arne Döring
5ed99f8d3f
Extent json.to testing to VM, add workrounds for VM bugs. ( #12493 )
...
fixes #12479
2019-10-28 10:06:16 +01:00
Miran
a2ad7d4883
fix deprecation warnings related to Int128 ( #12474 )
...
* semfold: fix deprecation warnings related to Int128
* semmagic: fix deprecation warnings related to Int128
* system/io: remove unneeded conversion of TaintedString to itself
2019-10-28 09:58:39 +01:00
Arne Döring
91af075244
integer literal documentation [ci skip] ( #12513 )
...
* integer literal documentation [ci skip]
* apply feedback [ci skip]
2019-10-28 09:52:59 +01:00
Andreas Rumpf
7192b13609
some progress on bug #12443
2019-10-27 17:50:30 +01:00
Andreas Rumpf
cbbc2cc237
fixes #12502
2019-10-27 17:50:30 +01:00
Andreas Rumpf
120829155a
development version should be 1.1.0 so that version checking can work properly
2019-10-27 17:50:30 +01:00
Andreas Rumpf
0631d2dccc
minor improvements
2019-10-27 17:50:30 +01:00
Tomohiro
f3b56e7ac0
Add /nologo option when nim call cl.exe ( #12524 )
2019-10-27 11:36:38 +01:00
Arne Döring
3c567bcf20
fixes #12514 ( #12520 ) [backport]
2019-10-27 11:34:33 +01:00
Jjp137
3a62cf29d8
Remove sentences referring to the graphics module ( #12522 )
2019-10-26 04:28:01 -04:00
Artem V L
60ff41a8da
'#' value parcing is explained (disambiguated) ( #12476 )
2019-10-25 15:22:26 +02:00
Jjp137
1d42108fda
sequtils: replace deprecated 'random' call within example ( #12515 ) [backport]
2019-10-25 09:47:34 +02:00
alaviss
5b3571c9a4
compiler/semtypes: improve lineinfo for exported object fields ( #12495 )
...
The line info should now points to the `a`, not the `*`, like this:
a*: string
^
Additionally this fixes nimsuggest's highlighting of exported object
fields.
2019-10-25 01:06:53 +02:00
Andreas Rumpf
e0d13abaff
VM: fixes register leaks [backport] ( #12510 )
2019-10-25 00:45:06 +02:00
Tomohiro
8040c84615
Fix Nim specify wrong option to vccexe when vcc.options.always is set ( #12490 ) [backport]
2019-10-24 23:43:59 +02:00
Andreas Rumpf
8a599fb571
fixes #12491 [backport]
2019-10-24 22:51:13 +02:00
alaviss
f827d75804
compiler/semcall: return the correct lineinfo for nkCallStrLit ( #12484 )
2019-10-24 18:21:37 +02:00