Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!nuug!sigyn.idt.unit.no!ugle.unit.no!hanche From: hanche@imf.unit.no (Harald Hanche-Olsen) Newsgroups: comp.sys.mac.programmer Subject: Re: Function pointers and lack of type conversion in Think C Message-ID: Date: 4 Nov 90 13:29:33 GMT References: <29170@boulder.Colorado.EDU> Sender: news@ugle.unit.no Organization: The Norwegian Institute of Technology, Trondheim, Norway. Lines: 24 In-Reply-To: pratt@boulder.Colorado.EDU's message of 3 Nov 90 05:50:54 GMT In article <29170@boulder.Colorado.EDU> pratt@boulder.Colorado.EDU (Jonathan Pratt) writes: 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 */ " Ahh, yes, always RTFM first. I looked but did not find the above reference. All right, so it's not a bug but just another gotcha. Meanwhile, is anyone out there knowledgeable enough to tell us whether a true ANSI compiler must behave the way I had believed it would with respect to function pointers? If not then perhaps I ought to make a guest appearance in comp.lang.c or some such place to ask the question there. Thanks for finding that quote for me. - Harald Hanche-Olsen Division of Mathematical Sciences The Norwegian Institute of Technology N-7034 Trondheim, NORWAY