Posted By: JohnP (JohnP) on 'CZprogram'
Title:     Re: pro chytre hlavy
Date:      Thu Nov 15 15:38:22 2007

> http://www.kuzbass.ru:8086/docs/isocpp/expr.html
> 
> 5.2.2 - Function call [expr.call]
> 
> 8- The order of evaluation of arguments is unspecified. All side effects of 
> argument expression evaluations take effect before the function is entered. 
> The order of evaluation of the postfix expression and the argument
> expression 
> list is unspecified.
> 
> Je to teda C++ standard, ale predpokladam, ze se v tomhle od C nelisi. 
> Predpokladam, ze vnutit kompilatoru konkretni poradi vyhodnocovani
> parametru se ti nepodari (ale nevim).

IMHO by to, alespon u nekterych kompilatoru, mohla ovlivnit volaci konvence
(cdecl, pascal,...). U puvodniho prispevku ale nebylo uvedeno, jake kompilatory
byly pouzity, natoz pak jejich verze.

Search the boards