<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 11/10/2015 16:14, Sven Barth wrote:<br>
</div>
<blockquote
cite="mid:CAFMUeB8M1TM1nKo+JFmnvx1F2xEKEnj=nScTNdCtgF8uMsKw5Q@mail.gmail.com"
type="cite">
<p>Am 11.10.2015 15:56 schrieb "MohsenTi" <<a
moz-do-not-send="true" href="mailto:mohsen.timar@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:mohsen.timar@gmail.com">mohsen.timar@gmail.com</a></a>>:<br>
><br>
> Hi everybody<br>
><br>
> I add new feature to FPC compiler to simplify programming.<br>
> this is While - Otherwise working like While - Else in
python and has backwards compatibility.</p>
<p>Nice idea with the otherwise. I first thought that this would
break case-statements that use otherwise instead of else, but
then I remembered that the case-label-blocks can and IMHO should
be terminated by ; anyway. At least problems can be easily
circumvented.</p>
</blockquote>
"should", but they do not have to, at least not the last one before
the otherwise<br>
<br>
So if old code has<br>
<blockquote type="cite"> case a of<br>
1 : write;<br>
2: while a > 1 do a := a -1<br>
otherwise<br>
write;<br>
end<br>
</blockquote>
that will break. (it can be fixed, but so could the if with while
else.<br>
<br>
why not a new keyword?<br>
<br>
while bool do<br>
foo()<br>
afterwards [do] // or even "then" would make sense (from english
reading perspective)<br>
bar();<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>