[TUHS] C declarations.

Ron Natalie ron at ronnatalie.com
Mon May 15 09:06:47 AEST 2017

You all are missing the point as to what the cost of passing arrays by value
or what other languages do.


C is implicitly a pass/return by value language for EVERY SINGLE POSSIBLE

Arrays are special for no reason other than it was thought to costly to do
it any otherway.   In fact, had it not been kludged up into a

nobody would have probably been the wiser.   It was too hard to pass/return
structs by value either in the initial compilers, but they fixed it to work
exactly that way.


So we have this array kludge that works differently than everything else.
Further, due to the kludgosity, it's not even exactly type safe.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20170514/d7e5bfc5/attachment.html>

More information about the TUHS mailing list