From mboxrd@z Thu Jan 1 00:00:00 1970 From: ron@ronnatalie.com (Ron Natalie) Date: Sun, 14 May 2017 19:06:47 -0400 Subject: [TUHS] C declarations. In-Reply-To: <6D3DCC45-B2C6-4374-83EE-F745C0AF7F36@bitblocks.com> References: <6D3DCC45-B2C6-4374-83EE-F745C0AF7F36@bitblocks.com> Message-ID: <030d01d2cd06$c44e2840$4cea78c0$@ronnatalie.com> 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 DATATYPE WITH THE EXCEPTION OF ARRAYS. 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 pseudo-pass-by-reference, 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: