3 ms·
They are a pointer and an offset with no validation of bounds. But that's OK: C is little more than a high level assembly.
by pmontra 9y ago
They are a pointer and an offset with no validation of bounds. But that's OK: C is little more than a high level assembly.
- armitron 9y agoI hate the term "high level assembly" when applied to C since it's loaded against assembly (in the sense of C as its superset) which is obviously not true. C is full of undefined behavior, assembly is not.
- pmontra 9y agoHigh level != Superset Actually we often give up features and specialize with high level languages. That's why there are things easier to do in Ruby than in C++ and vice versa. They are all (usually much more convenient) subsets of assembly.
- antoinealb 9y agoWhat ? Assembly has undefined behavior, for example wrt unaligned access on some processors.