mixing pointers and arrays

Guy Harris guy at rlgvax.UUCP
Mon Aug 15 17:37:15 AEST 1983

I agree that even though passing arrays by value would be cleaner, it
wouldn't be desirable (interesting note about Pascal programmers).  I
don't know if DMR or any of the other founding fathers of C read this
newsgroup, but what is the general consensus about structure assignment
and passing structures by value?  I know it's a major mess to handle
them inside PCC, and some version of PCC generate very nasty code to
handle them (the push/copy of structures isn't done by a loop - the loop
is unrolled at compile time).  I rarely use them, and plan not to use
them in the future given that our MIT-based 68000 PCC generates the afore-
mentioned nasty code.  (The fix is fairly straightforward, I just haven't
felt motivated to put it in.)

	Guy Harris

More information about the Comp.lang.c mailing list