<div dir="ltr">I know this issue but with changing some of structures, I can implement it and now I only want testing adding features to compiler and don't care about backward compatibility,just testing.<div><br></div><div>I added some changes to compiler functions and classes like pstatmnt.while_statement and nflw.twhilerepeatnode but need more information about functions and units.</div><div><br></div><div>Mohsen Timar</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 8, 2015 at 6:28 PM, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On Thu, 8 Oct 2015, Mohsen wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi!<br>
I wanna add new features and facilities to pascal like while - else, for - else and inline if statement like python.<br>
<br>
examples<br>
<br>
ex1:<br>
<br>
I:=5;<br>
while(I>0) do<br>
begin<br>
Write(I);<br>
I:=I-1;<br>
end else Write(' While Else ');<br>
</blockquote>
<br></span>
This cannot be implemented without breaking the language.<br>
<br>
I:=5:<br>
If (I<5) then<span class=""><br>
while(I>0) do<br>
begin<br>
Write(I);<br>
I:=I-1;<br>
end else<br>
Write(' While Else ');<br>
<br></span>
Will not work correctly any more if you want to implement your idea.<br>
<br>
So this extension is not possible without breaking backwards compatibility.<br>
<br>
Michael.<br>
_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org" target="_blank">fpc-devel@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" rel="noreferrer" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a><br>
</blockquote></div><br></div>