News for hackers. Stuff that matters.
Re:Pointer Free Programming and the Future of Nim by mratsim on Friday October 20, 2017 @06:44AM (#15514777)
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 ...)

Re:Pointer Free Programming and the Future of Nim by dom96 on Friday October 20, 2017 @07:14AM (#15514861)
> But you can't do pointer arithmetics in Nim.

Actually you can, by using casts.

Re:Pointer Free Programming and the Future of Nim by mratsim on Friday October 20, 2017 @01:33PM (#15517609)
Oops, I obviously meant "you can" but I probably typed too fast :P