Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!mouse From: mouse@thunder.mcrcim.mcgill.edu (der Mouse) Newsgroups: comp.lang.c Subject: Re: Float problems Message-ID: <1991May30.104453.28793@thunder.mcrcim.mcgill.edu> Date: 30 May 91 10:44:53 GMT References: <1991May25.213301.13765@cs.mcgill.ca> Organization: McGill Research Centre for Intelligent Machines Lines: 23 In article <1991May25.213301.13765@cs.mcgill.ca>, storm@cs.mcgill.ca (Marc WANDSCHNEIDER) writes: > Why does the following: [abstracted to relevant piece -Mouse] > float testfloat (void); [...] > float f; > f = testfloat; > Give me an ILLEGAL USE OF FLOATING POINT error...? Misfeature in your compiler. It should give you a message about pointer to function not being assignment compatible with float, 'cuz that's what what you've written is trying to do: set f to a pointer (to testfloat). der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu