Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@PhilipWitte
PhilipWitte / carray.nim
Last active April 5, 2021 14:58
Unchecked Array vs Pointer Arithmatic
type
CArray{.unchecked.}[T] = ptr array[1, T]
type
A = object
items: ptr float
B = object
items: CArray[float]