5 ms·
The syntax and title reminds me of standard Pascal, which has very constrained pointers that, among other things, you can't do arithmetic with --- eventually le
by userbinator 9y ago
The syntax and title reminds me of standard Pascal, which has very constrained pointers that, among other things, you can't do arithmetic with --- eventually leading to code that basically reinvents memory itself by using a large array and lots of indexing operations.
(Look at Donald Knuth's TeX for an example of this style.)
- pjmlp 9y agoWith the added benefit of bounds checking. However all Pascal dialects had extensions for low level pointer manipulation.
- mratsim 9y agoNim 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 ...)