Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!emory!mephisto!udel!new From: new@udel.EDU (Darren New) Newsgroups: comp.sys.amiga.tech Subject: Re: YAMB (Yet Another Manx Bug in 5.0a) Message-ID: <16704@estelle.udel.EDU> Date: 12 Apr 90 23:03:07 GMT References: <16544@estelle.udel.EDU> <738@cameron.cs.duke.edu> <4631@cpoint.UUCP> Reply-To: new@ee.udel.edu (Darren New) Organization: University of Delaware Lines: 17 In article <4631@cpoint.UUCP> steve@cpoint.UUCP (Stephen Steir) writes: >It is impossible to predict an argument prototype for a pointer to a >function. Not true. It was just done in the previous post of this thread. The human can always predict what arguments to pass; how else would he or she know what to code as arguments? >'C' compilers have always pushed a short argument as a short No again. C compilers have always pushed shorts as ints. Only if short==int is that true. >and the only advantage of a function prototype is to warn the programer >of mismatched types. Bzzzt. Three strikes! The prototype is also used to cast constants to the correct size (I think) and cast vars/expressions to the correct size after a warning. Or something like that. -- Darren