<div dir="ltr">So (Sven) to clarify, assume that your original ifthen [patch is now in latest svn compiler although more work will needed to do x:=if a then b else c;? j </div><div class="gmail_extra"><br><div class="gmail_quote">On 2 February 2016 at 18:33, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 02.02.2016 10:25, Michael Schnell wrote:<br>
> On 02/01/2016 09:35 PM, Maciej Izak wrote:<br>
>><br>
>><br>
>> x := if true then 0 else 1<br>
><br>
> Here a keyword and a statement just optionally returns a value, Same is<br>
> ignored in all legacy code but can be use it you want to and do know<br>
> what you do.<br>
><br>
> Additionally "0" now is a statement, (optionally) extending what is<br>
> considered a statement.<br>
<br>
</span>Why would "0" now be a statement? As long as the "if" is the expression<br>
as well then the definition would be "if Condition then ThenExpr else<br>
ElseExpr", not "if Condition then ThenStmt else ElseStmt". Otherwise<br>
things like procedures ore assignments would be allowed as well which is<br>
not the case.<br>
<span class=""><br>
><br>
> This is a rather drastic change in the basic definition of the language,<br>
> but might be doable. I's completely optional, and I don't see how it<br>
> might break anything.<br>
<br>
</span>Of course it's doable. See the patch I attached at the initial mail of<br>
this thread.<br>
<br>
Regards,<br>
Sven<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br></div>