Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!purdue!decwrl!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga Subject: C differences (was Ideas for Arp) Summary: Don't cheat and you win Message-ID: <79528@sun.uucp> Date: 30 Nov 88 20:08:23 GMT References: <1978@van-bc.UUCP> <3026@sugar.uu.net> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 18 The information "This was written using the {Manx|Aztec|Lattice} compiler" is vital for both bug reports and for porting purposes. Because C is a rather unique language that lets you do all sorts of "bad" things and still work. There are two things that are the most likely things to get you, they are : #1 : sizeof(void *) != sizeof(int) #2 : type_t func() { /* no return */} does not return type_t Number one bites most Aztec users, number two is less of a problem but still can cause hard to track bugs. Normally, C compilers will complain at you when they detect some of these common errors, sometimes programmers will use a cast rather than a real declaration to fix the problem. This causes problems. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.