Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Tell me why

Name: Anonymous 2014-08-14 23:48

The biggest mistake C made by far was that arrays decay to pointers when passed through function, so buffers have to be idiomatically reconstructed inside the calls.
Remember that language idioms are just gaping holes from missing semantics, and C decided that keeping buffer size around was just not important enough.
I guess maintaining pure pass-by-value conventions was just too important.

Name: Anonymous 2014-08-14 23:59

The biggest mistake C made by far was that arrays decay to pointers when passed through function, so buffers have to be idiomatically reconstructed inside the calls.
What do you mean by "idiomatically reconstructed inside the calls"?

C decided that keeping buffer size around was just not important enough.
What's so hard about struct { void *p; size_t sz; }?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List