Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1a 7/7/83; site rlgvax.UUCP Path: utzoo!linus!decvax!harpo!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.lang.c Subject: Re: mixing pointers and arrays Message-ID: <1002@rlgvax.UUCP> Date: Mon, 15-Aug-83 03:37:15 EDT Article-I.D.: rlgvax.1002 Posted: Mon Aug 15 03:37:15 1983 Date-Received: Mon, 15-Aug-83 10:42:20 EDT References: <1737@allegra.UUCP>, <1795@umcp-cs.UUCP>, <191@cbosgd.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 14 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 {seismo,mcnc,we13,brl-bmd,allegra}!rlgvax!guy