Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!bellcore!faline!scherzo!allegra!mit-eddie!ll-xn!cit-vax!usc-oberon!sdcrdcf!markb From: markb@sdcrdcf.UUCP Newsgroups: comp.lang.c Subject: Re: Why pass structs? (not struct pointers) Message-ID: <4246@sdcrdcf.UUCP> Date: Wed, 4-Mar-87 12:31:05 EST Article-I.D.: sdcrdcf.4246 Posted: Wed Mar 4 12:31:05 1987 Date-Received: Sat, 7-Mar-87 00:11:02 EST References: <3346@cisunx.UUCP> <1437@kontron.UUCP> Reply-To: markb@sdcrdcf.UUCP (Mark Biggar) Distribution: na Organization: Unisys - System Development Group, Santa Monica Lines: 15 I always thought that it was added so that people who do complex math would not have do any pointer hacking. It is a lot nicer to be able to write: a = c_add(c_mul(b,c),d); then { struct cmplx t; c_mul(&t,&b,&c); c_add(&a,&t,&d); } Mark Biggar {allegra,burdvax,cbosgd,hplabs,ihnp4,akgua,sdcsvax}!sdcrdcf!markb