Float problems

der Mouse mouse at thunder.mcrcim.mcgill.edu
Thu May 30 20:44:53 AEST 1991


In article <1991May25.213301.13765 at cs.mcgill.ca>, storm at 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 at larry.mcrcim.mcgill.edu



More information about the Comp.lang.c mailing list