Araq
e9d7e21dbe
minor reformating
2020-10-06 06:10:47 +02:00
Andreas Rumpf
4e438f9096
const view types; fixes some cases from https://github.com/nim-lang/Nim/issues/15428 ( #15488 )
2020-10-05 18:31:46 +02:00
Miran
112b11c154
group procs of the same name in TOC ( #15487 )
...
* group procs of the same name in TOC
* correctly show `sink` parameters in TOC
* no need to reinvent the wheel - `mgetorPut` exists
* better setting of text color [ci skip]
* fix CSS for better alignment
2020-10-05 17:03:14 +02:00
alaviss
fc973b2c0c
renderer: use the biggest integer type for masking literals ( #15482 )
...
On 32-bit system the mask would have a size of 32-bit, which is smaller
than the BiggestInt (usually 64-bit) it was masked against.
For some reason this only affect 32-bit Windows but not 32-bit Linux.
Might just be a difference in how gcc handle out of bound shifts for
Windows and Linux.
2020-10-04 00:39:56 +02:00
Andreas Rumpf
2288188fe9
fixes https://github.com/nim-lang/RFCs/issues/257 [backport:1.2] ( #15479 )
2020-10-03 17:34:42 +02:00
Andreas Rumpf
9828392df3
implements https://github.com/nim-lang/RFCs/issues/257 ( #15466 )
2020-10-02 18:53:22 +02:00
Andreas Rumpf
ff70ff529d
remove nim.cfg file change lefover [backport:1.2] ( #15469 )
2020-10-02 18:51:49 +02:00
Andreas Rumpf
7d8c1be8fb
parser hotfix: don't run into endless loops; regression ( #15468 )
2020-10-02 18:26:52 +02:00
Andreas Rumpf
1f4b9cebd4
Added std/effecttraits.nim ( #15462 )
2020-10-02 17:22:31 +02:00
Andreas Rumpf
aa1d7fe1e9
closureiters: fixes #15243 ( #15454 ) [backport:1.2]
...
* fixes #15243 [backport:1.2]
2020-10-02 12:38:16 +02:00
shirleyquirk
84d9b1227d
fixes #15430 , pop pragma takes invalid input ( #15449 )
...
* fix #15430 , pop pragma
{.pop, experimental.} should be allowed, but not {.pop experimental.}
2020-10-01 18:07:55 +02:00
cooldome
531ed2dc36
fix #15405 . deepcopy arc ( #15410 )
...
* fix #15405
* fix tests
* deepcopy for ARC has to be enabled via --deepcopy:on
Co-authored-by: Araq <rumpf_a@web.de >
2020-10-01 17:39:48 +02:00
Juan Carlos
8f90ac6af1
Clean out ( #15448 )
2020-10-01 15:07:57 +02:00
Andreas Rumpf
ab405c936e
views: yet another bugfix ( #15447 )
...
* views: yet another bugfix
* views: extended the spec
* views: take into account potential hidden mutations via proc calls
2020-10-01 15:04:36 +02:00
Andreas Rumpf
2b91845f1d
refactoring, fixes yet another strictFuncs regression ( #15446 )
2020-10-01 11:16:04 +02:00
Andreas Rumpf
b703f02ad2
added missing .noalias support for object fields ( #15445 )
2020-10-01 09:46:50 +02:00
Andreas Rumpf
86d7b63e2a
better support for view types ( #15436 )
...
* you can put borrows into tables
* enforces mutating views only mutate mutable data
2020-09-30 20:44:18 +02:00
Andreas Rumpf
4058801607
spec for view types ( #15424 )
...
* spec for view types
* spec additions
* refactoring; there are two different kinds of views
* refactorings and spec additions
* enforce that view types are initialized
* enforce borrowing from the first formal parameter
* enforce lifetimes for borrowing of locals
* typo in the manual
* clarify in the implementation what a borrow operation really is
2020-09-29 23:42:38 +02:00
Andreas Rumpf
50b6f6996a
.noalias annotation; frontend support ( #15419 )
...
* .noalias annotation; frontend support
* added .noalias support to Nim; implements https://github.com/nim-lang/RFCs/issues/204
2020-09-28 13:51:39 +02:00
Andreas Rumpf
f1ac01459c
produce runtime type information for reified openArrays ( #15415 )
...
* produce runtime type information for reified openArrays
* added a test case
2020-09-27 20:44:22 +02:00
Andreas Rumpf
57b7841c18
better support for slices as views ( #15414 )
...
* moved view tests to tests/views
* refactoring
* more refactorings
* better support for system.toOpenArray for first class view types
2020-09-27 09:20:10 +02:00
Andreas Rumpf
e6616115e6
cursor inference: makes combparser work; refactorings ( #15411 )
...
* cursor inference: makes combparser work; refactorings
2020-09-26 13:11:35 +02:00
alaviss
d4892e9388
koch, compiler: bundle fusion as part of the source archive ( #15409 )
...
This allows distributions to build Nim from the downloaded source
archive without an Internet connection.
2020-09-26 09:31:55 +02:00
cooldome
68ec7a018b
Revert "fix #15035 ( #15236 )" ( #15408 )
...
This reverts commit f8c48fc186 .
2020-09-24 22:21:14 +02:00
Andreas Rumpf
e3b5f80a89
more precise borrow checking of 'result' ( #15406 )
2020-09-24 22:07:23 +02:00
Andreas Rumpf
ce72d7ffc5
fixes #15403 ( #15404 )
2020-09-24 19:34:59 +02:00
Andreas Rumpf
4ec5cbac0d
fixes #15361 ( #15401 )
...
* fixes #15361 ; better cursor inference
2020-09-24 15:41:45 +02:00
flywind
8a6c5edc43
use release version ( #15400 )
2020-09-24 14:14:23 +02:00
cooldome
f21a49b2c4
Fix #15389 ( #15390 )
...
* allow result symbol reuse
* try different approach
* Revert "try different approach"
This reverts commit abcfb6b759 .
2020-09-24 00:07:30 +01:00
Miran
fe3211fbcf
fix the indentation in --help and --fullhelp ( #15387 )
...
* fix the indentation in `--help` and `--fullhelp`
* a better way to fix it
2020-09-23 12:44:41 +02:00
Araq
94c8d53a03
'koch temp' bugfix
2020-09-23 10:41:33 +02:00
Andreas Rumpf
e2d80b15a6
finish the stacktraces.nim implementation [backport:1.2] ( #15393 )
2020-09-23 10:01:52 +02:00
Clyybber
4b9eea2fcc
Fix forward declarations in shadow scope contexts ( #15386 )
...
* Fix forward declarations in shadow scope contexts
* Add testcase for #15385
* Less empty lines
* Fix tests
* Inline isShadowScope
* Add original testcase (with reduced amount of iterations)
* Add testcase without forward decl
2020-09-22 18:24:13 +02:00
Andreas Rumpf
c2434d939e
fixes #15360 [backport:1.2] ( #15378 )
2020-09-21 12:35:23 +02:00
Araq
33be7c6f5e
arc: =deepcopy fixes
2020-09-20 10:43:57 +02:00
Andreas Rumpf
a15d77df7e
ORC/ARC async progress ( #15370 )
...
* ARC/ORC: fixes memory leak for empty seqs that have a non-zero capacity
* async: minor refactorings
* it helps to finish a refactoring
2020-09-20 00:27:32 +02:00
jcosborn
e56d50d747
fix infinite recursion in typeRel ( #15241 )
...
* fix generic constraints
Co-authored-by: James Osborn <osborn@Jamess-MacBook-Pro.local >
2020-09-18 11:21:37 +02:00
Andreas Rumpf
bc9967f05a
Revert "Introduce explicit copy ( #15330 )" ( #15346 )
...
This reverts commit a3e9cc5234 .
2020-09-16 23:24:17 +02:00
cooldome
d938c6411e
fix #15326 ( #15341 )
2020-09-16 21:37:23 +02:00
cooldome
341be0b61c
proc params as syms ( #15332 )
...
* proc params are now syms
* Fix typesrenderer
* Add testcase for disrupteks issue
* fix test
* Trigger build
* Trigger build
* Trigger build
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-09-16 17:25:24 +01:00
cooldome
a3e9cc5234
Introduce explicit copy ( #15330 )
2020-09-16 17:26:45 +02:00
Andreas Rumpf
ae4ede6b00
fixes #15325 ( #15340 )
2020-09-16 17:26:13 +02:00
Andreas Rumpf
fd31e8ff6f
allow old styled RTTI for arc/orc ( #15331 )
2020-09-16 14:57:01 +02:00
Andreas Rumpf
bc179ccc3f
fixes #15076 ( #15329 )
2020-09-15 12:40:23 +02:00
Jaremy Creechley
6c49767a6c
Fixing issue #15302 -- lwip doesn't support signals ( #15303 )
...
* Fixing issue #15302 -- lwip doesn't support signals
* Adding test to catch issue #15302 -- lwip/freertos net library
don't try to build / run on windows, it'll compile only but not run
Fixing issue #15302 -- reworking test to compile on other platforms
2020-09-14 08:57:49 +02:00
Andreas Rumpf
1df5cfba52
fixes #15147 ( #15315 )
2020-09-12 23:11:38 +02:00
Clyybber
1881fc5812
Fix #15305 ( #15311 )
...
* Fix #15305
* Fix test
2020-09-12 12:39:46 +01:00
Andreas Rumpf
0c41ac792b
fixes #15122 ( #15301 )
2020-09-11 01:50:42 +02:00
Miran
6a621b35e7
fix warnings for deprecated low and high ( #15291 )
2020-09-11 01:04:07 +02:00
cooldome
61c85e034d
Fix #15286 ( #15292 )
...
* fix #15286
* fix spacing
2020-09-10 12:40:39 +02:00