Skip to content

Instantly share code, notes, and snippets.

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