Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#7279) Macro optimizations
Home

[Freeciv-Dev] Re: (PR#7279) Macro optimizations

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: a-l@xxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7279) Macro optimizations
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Wed, 21 Jan 2004 10:11:55 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7279 >

On Wed, Jan 21, 2004 at 09:24:41AM -0800, Arnstein Lindgard wrote:
> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7279 >
> 
> On Tue, 20 Jan 2004 17:10:39 -0800 rwetmore@xxxxxxxxxxxx wrote:
> 
> > Some interesting comments on inline functions from Stroustrup.
> > 
> >    The order of evaluation of actual arguments to functions is undefined.
> >    In particular, an inline expansion is not required to preserve the
> >    order of evaluation of actual arguments that the implementation would
> >    have produced for an out-of-line call. Since one call of a function in a
> >    program may be inlined while another is handled by the normal function
> >    call mechanism, this can lead to two calls to the same function with
> >    identical actual arguments yielding different results.
> 
> Can the order of evaluation of function arguments really be relevant?

Not the last time I checked this. splint reports this. It is bad/wrong
even without inlineing.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Despite all the medical advances of the 20th century, the mortality 
  rate remains unchanged at 1 death per person."




[Prev in Thread] Current Thread [Next in Thread]