Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!mtune!codas!ateng!chip From: chip@ateng.UUCP (Chip Salzenberg) Newsgroups: comp.lang.c Subject: Re: Re: A bad design decision early on in ANSI C. Message-ID: <144@ateng.UUCP> Date: 2 Jan 88 18:20:54 GMT References: <572@ambush.UUCP> Reply-To: chip@ateng.UUCP (Chip Salzenberg) Organization: A T Engineering, Tampa, FL Lines: 19 In article <572@ambush.UUCP> kimcm@ambush.UUCP writes: > [concerning structure assignment and structures as function arguments] > > Although I agree that it is a nice feature - but dangerous on some systems: > > 1) Forget the & when passing a pointer blows your program. Forget an ampersand almost anywhere in C and your program goes out to lunch. > 2) Passing of huge structures may bomb the stack on small systems. Huge structures as local variables may bomb small stacks. Repeat after me: "That which does not protect you cannot hinder you." Now the final word: "If you're _that_ concerned, lint the program first." -- Chip Salzenberg UUCP: "{codas,uunet}!ateng!chip" A T Engineering My employer's opinions are a trade secret. "Anything that works is better than anything that doesn't." -- me