Andreas Rumpf
a156484553
ensure the Nim compiler works with --experimental:strictFuncs --experimental:views [backport:1.4] ( #15737 )
...
(cherry picked from commit cf01945f54 )
2020-10-27 09:06:45 +01:00
Andreas Rumpf
e7b7356bd1
fixes view types for sizeof() and --gc:orc ( #15680 )
...
(cherry picked from commit 64016ddedc )
2020-10-22 20:21:49 +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
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
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