<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 02/02/2016 14:33,
<a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal-request@lists.freepascal.org">fpc-pascal-request@lists.freepascal.org</a> wrote:<br>
</div>
<blockquote
cite="mid:mailman.157.1454420022.5550.fpc-pascal@lists.freepascal.org"
type="cite">
<pre wrap="">Date: Tue, 2 Feb 2016 14:24:18 +0100
From: Sven Barth <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:pascaldragon@googlemail.com"><pascaldragon@googlemail.com></a>
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">></span>
<span class="moz-txt-citetags">> </span>Why make the things complex? Why create another "special case"?
<span class="moz-txt-citetags">> </span>Look at the "iif" as an statement and the things will be simple.
</pre>
</blockquote>
<pre wrap="">BECAUSE. IT. IS. <b class="moz-txt-star"><span class="moz-txt-tag">*</span>NOT<span class="moz-txt-tag">*</span></b>. A. STATEMENT!
It never was and it never will be! It returns a value and thus by
definition it is an expression!</pre>
</blockquote>
<br>
The first tile in my life I see such strange definition of
expression :)<br>
Please, use more generic notions.<br>
<br>
As I said, "return" statement is a good example. The assignment one
too.<br>
<br>
And the principal difference between statement and expression that
the expression doesn't control execution flow.<br>
As you can see, iif "expression" does.<br>
<br>
In C the "?" statement called operator, it may be a good compromise.<br>
<br>
Regards,<br>
Serguei<br>
</body>
</html>