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; }?

Name: Anonymous 2014-08-15 0:15

>>2
What's so hard about struct { void *p; size_t sz; }?
Nothing, but today's appers need that to be a factory of abstract size of void * factory factory factory

Name: Anonymous 2014-08-15 1:52

Well I don't feel that C has made any big mistakes. I think C was a success. I don't understand your complaints in >>1 and arrays decaying to pointer types is a natural thing to happen.

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