<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-05-12 0:32 GMT+02:00 deadalnix via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wednesday, 11 May 2016 at 18:36:11 UTC, H. S. Teoh wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On Wed, May 11, 2016 at 05:55:27PM +0000, deadalnix via Digitalmars-d wrote:<br>
</span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wednesday, 11 May 2016 at 16:44:43 UTC, H. S. Teoh wrote:<br>
>That's what I've been saying, it should be treated as a >special case in the syntax of for-loops, but not as an >operator in general.<br>
><br>
<br>
Please no special cases.<br>
</blockquote>
<br></div></div><span class="">
You misunderstand, what I mean is that the comma should be *part of* for-loop syntax, instead of being part of expression syntax. I.e., for-loop grammar should read something like this:<br>
<br>
for-loop:<br>
        "for" "(" loop-init ";" loop-condition ";" loop-increment ")" block<br>
<br>
loop-init:<br>
        comma-separated-exprs<br>
<br>
loop-condition:<br>
        comma-separated-exprs<br>
<br>
loop-increment:<br>
        comma-separated-exprs<br>
<br>
comma-separated-exprs:<br>
        expression<br>
        expression "," comma-separated-exprs<br>
<br>
And the grammar for expression should have zero references to comma operators.<br>
<br>
<br>
T<br>
</span></blockquote>
<br>
loopinit is a statement, but I see the idea. Works for me.<br>
<br>
</blockquote></div><br>That is my intent too. However the discussions on the P.R. seem to converge in another direction.<br></div></div>