flywind
9df195ef58
style usages part one (openarray => openArray) ( #19321 )
...
* style usages (openArray)
* revert doc changes
2022-01-04 13:29:50 +01:00
Andreas Rumpf
576fece909
fixes 'lent T' inside object constructor [backport] ( #18911 )
...
* fixes 'lent T' inside object constructor [backport]
* progress
2021-09-27 22:23:31 +02:00
Andreas Rumpf
7e5eab571e
closes #18690 ; make view types stricter [backport] ( #18891 )
...
* closes #18690
* don't allow capturing of view types [backport]
2021-09-24 16:27:34 +02:00
Andreas Rumpf
6163bdd279
closes #16132 [backport] ( #18880 )
...
* closes #16132 [backport]
* fixes #16132 [backport]
2021-09-22 15:07:36 +02:00
Andreas Rumpf
2ea7287217
view types: spec changes ( #18226 )
...
* view types: spec changes
* Update doc/manual_experimental.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update doc/manual_experimental.rst
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2021-06-10 16:49:17 +02:00
flywind
7bfb9f0002
close #17636 ( #17643 )
2021-04-06 16:20:01 +02:00
Andreas Rumpf
cf01945f54
ensure the Nim compiler works with --experimental:strictFuncs --experimental:views [backport:1.4] ( #15737 )
2020-10-26 21:08:57 +01:00
Andreas Rumpf
64016ddedc
fixes view types for sizeof() and --gc:orc ( #15680 )
2020-10-22 18:52:05 +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