3 ms·
Nim was written in Pascal at the very beginning. But you can't do pointer arithmetics in Nim. Either - `type Foo = object` -> Value type, on the stack - `ty
by mratsim 9y ago
Nim was written in Pascal at the very beginning.
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 ...)