On Tue, 9 Sep 2003, Derek Fawcus wrote:
> On Tue, Sep 09, 2003 at 01:24:41AM -0500, Warren Turkal wrote:
> > Does the K&R code go to (1) or (2)?
> > (1)
> > int
> > blah(int x, float y)
> > { ... }
> Hmm, given the K&R promotion rules, shouldn't the above be converted
> to:
>
> int
> blah(int x, double y)
> { ... }
( yes ;-)
> unless you can be sure that there is no code relying upon the fact that
> a float argument to this fn is converted to double at invokation?
>
> i.e. initially try and preserve the same stack frame.
if you don't, interfaces change - which is undesirable.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel