summary refs log tree commit diff stats
path: root/tests/errmsgs
diff options
context:
space:
mode:
authorc-blake <c-blake@users.noreply.github.com>2018-10-12 11:40:07 -0400
committerAndreas Rumpf <rumpf_a@web.de>2018-10-12 17:40:07 +0200
commit1b3725e3954ca01e5f37e82845549bdcce7d3901 (patch)
treee90fc69e6f3574bd716727164860282ec70d3b76 /tests/errmsgs
parent14925ee8b6c33ae1477c729b52195d38e4d68b32 (diff)
downloadNim-1b3725e3954ca01e5f37e82845549bdcce7d3901.tar.gz
Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. (#9316)
* Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity.  `ptr array[0,T]`
for some unchecked type already works but A) `UncheckedArray` seems to be
the intended future way for this kind of access, and B) essentially all use
cases will have a `ptr` for that kind of array source and this call signature
lets callers drop the trailing `[]` corresponding to that `ptr` deref.
This PR relates to issue https://github.com/nim-lang/Nim/issues/9001 .

* Add a test for toOpenArray() for UncheckedArray[T]s.
Diffstat (limited to 'tests/errmsgs')
0 files changed, 0 insertions, 0 deletions
umented nimfix' href='/ahoang/Nim/commit/install.txt?h=devel&id=1f63d1c76e733812e5e61d81e83429f853511fe7'>1f63d1c76 ^
db4f617af ^



1f63d1c76 ^
db4f617af ^
99bcc233c ^
1f63d1c76 ^
99bcc233c ^
4d4b3b1c0 ^
db4f617af ^




9387913b7 ^
627e192f6 ^
9387913b7 ^
db4f617af ^




1f63d1c76 ^
053309e60 ^
1f63d1c76 ^
a58a2f382 ^
db4f617af ^








ff4a69b62 ^

db4f617af ^
300430fbb ^
e27e873b7 ^



1f63d1c76 ^
e27e873b7 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68