3 ms·
Statically allocated/sized arrays are relatively easy. The problem is dynamically allocated/sized arrays coupled with pointer "interface", which supports type c
by friendzis 4y ago
Statically allocated/sized arrays are relatively easy. The problem is dynamically allocated/sized arrays coupled with pointer "interface", which supports type casting.
- Animats 4y agoSomething smart enough to convert pointer arithmetic to slice expressions is needed. Most C pointer arithmetic is really just slice access. (Who invented array slices? It was a concept that came along much later than one might have expected.)