Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!sdd.hp.com!uakari.primate.wisc.edu!uflorida!gatech!ncar!boulder!pratt From: pratt@boulder.Colorado.EDU (Jonathan Pratt) Newsgroups: comp.sys.mac.programmer Subject: Re: Function pointers and lack of type conversion in Think C Message-ID: <29170@boulder.Colorado.EDU> Date: 3 Nov 90 05:50:54 GMT References: Sender: news@boulder.Colorado.EDU Reply-To: pratt@boulder.Colorado.EDU (Jonathan Pratt) Organization: University of Colorado, Boulder Lines: 20 Nntp-Posting-Host: fred.colorado.edu In article hanche@imf.unit.no (Harald Hanche-Olsen) writes: >Executive summary: Bug in Think C -- If a function is called via a >function pointer then automatic type conversion of its args does not >take place. > Not a bug, but a missing feature (that would be nice to have). If you'd read the TC4 manual, language reference, page 441, you'd see: "Prototype arguments which are not associated with a named function are permitted, but not honored. For example: int (*fn)(int n); /* prototype ignored */ " Jonathan /* Jonathan Pratt Internet: pratt@boulder.colorado.edu * * Campus Box 525 uucp: ..!{ncar|nbires}!boulder!pratt * * University of Colorado * * Boulder, CO 80309 Phone: (303) 492-4293 */