<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/28/2013 02:47 PM, Dmitry Pribysh
wrote:<br>
</div>
<blockquote cite="mid:292231382968049@web3m.yandex.ru" type="cite">
<div> </div>
<div>As it is written in Free Pascal <a moz-do-not-send="true"
href="http://wiki.freepascal.org/Code_Conversion_Guide#Order_of_parameter_evaluation">wiki</a>,
order of parameter evaluation is not defined in FPC, but it is
defined in Delphi (Delphi guarantees left-to-right evaluation
order).</div>
<br>
</blockquote>
IMHO =in fact evaluation of a parameter should not be guaranteed at
all. <br>
<br>
The compiler should be free to inline a function, detect that the
parameter is not necessary for the evaluation of the function result
and drop the evaluation of the parameter (maybe giving a warning or
error message if that might trigger side-effects).<br>
<br>
-Michael<br>
</body>
</html>