Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!husc6!panda!teddy!jpn From: jpn@teddy.UUCP (John P. Nelson) Newsgroups: comp.lang.c Subject: Re: A bad design decision early on in ANSI C. Message-ID: <4570@teddy.UUCP> Date: 12 Jan 88 22:46:34 GMT References: <572@ambush.UUCP> <144@ateng.UUCP> <1377@sugar.UUCP> Reply-To: jpn@teddy.UUCP (John P. Nelson) Organization: GenRad, Inc., Concord, Mass. Lines: 12 >Forget an ampersand almost anywhere else in 'C' and my compiler tells me... > >If I *had* lint, I would. Instead I have a compiler that does a very good >job of type checking where it can. Thanks to structure passing, this is one >place it hasn't a hope in hell of protecting me. This was a discussion of the ANSI C standard, wasn't it? (and whether structure-passing should be part of the standard.) If you've GOT an ANSI conforming compiler, just use function prototypes, and your problem is solved! Type mismatches can't occur in function calls anymore! - john nelson