summary refs log tree commit diff stats
path: root/tests/converter
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/converter
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/converter')
0 files changed, 0 insertions, 0 deletions