Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Pointer Free Programming and the Future of Nim. Parent comment
But you can't do pointer arithmetics in Nim.
Either
- `type Foo = object` -> Value type, on the stack
- `type Foo = ref object` -> Ref type, managed by GC
- `type Foo = ptr object` -> Pointer type, manual memory management (malloc, free, memcopy ...)
Actually you can, by using casts.
But you can't do pointer arithmetics in Nim.
Either
- `type Foo = object` -> Value type, on the stack
- `type Foo = ref object` -> Ref type, managed by GC
- `type Foo = ptr object` -> Pointer type, manual memory management (malloc, free, memcopy ...)