Hacker News new | past | comments | ask | show | jobs | submit login

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 ...)




> But you can't do pointer arithmetics in Nim.

Actually you can, by using casts.


Oops, I obviously meant "you can" but I probably typed too fast :P




Applications are open for YC Summer 2020

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: