Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site dg_rtp.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!mcnc!rti-sel!dg_rtp!meissner From: meissner@dg_rtp.UUCP (Michael Meissner) Newsgroups: net.lang.c Subject: Re: Float Double Parameters Message-ID: <258@dg_rtp.UUCP> Date: Mon, 31-Mar-86 09:17:02 EST Article-I.D.: dg_rtp.258 Posted: Mon Mar 31 09:17:02 1986 Date-Received: Wed, 2-Apr-86 02:49:49 EST References: <2600042@ccvaxa> Reply-To: meissner@dg_rtp.UUCP (Michael Meissner) Organization: Data General (Languages @ Westborough, MA.) Lines: 19 In article <2600042@ccvaxa> aglew@ccvaxa.UUCP writes: > >Mouse Parker found a bug in Sun C's treatment of float parameters. >His entire letter is reproduced below, since it was from another newsgroup. > >> 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. Close, but no cigar. It is true that in the abscence of prototype information, a compiler conforming to X3J11 has to convert float to double on calls (but is allowed to use single precision in expressions). However, if you have a prototype in scope, the compiler is not obligated to convert to double precision. Michael Meissner, Data General