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: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#7279) Macro optimizations
From: "Arnstein Lindgard" <a-l@xxxxxxx>
Date: Wed, 21 Jan 2004 09:24:41 -0800
Reply-to: rt@xxxxxxxxxxx

<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?


Arnstein




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