Float Double Parameters
Andrew Koenig
ark at alice.UucP
Sun Mar 30 01:04:46 AEST 1986
>> First and foremost, get rid of the stupid promotion to doubles! I
>>have considered this a misfeature ever since I heard of it.
>>Tangentially to this topic, does X3J11 have anything to say on this
>>matter?
>X3J11 says "arguments that have type float are promoted to double". Too bad.
Ansi C also lets you declare types of formal parameters to externals:
extern float f(float x);
in which case:
f(1); /* 1 is converted to float */
f(1.0); /* 1.0 is converted to float */
are both OK.
More information about the Comp.lang.c
mailing list