<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-04-20 8:58 GMT+02:00 leledumbo <span dir="ltr"><<a href="mailto:leledumbo_cool@yahoo.co.id" target="_blank">leledumbo_cool@yahoo.co.id</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">At syntax level, there's no Pascal equivalent<br>
of C's comma (sequence) operator. Argument evaluation in C is strictly right<br>
to left, in Pascal it's up to the compiler. A silly but valid C statement:<br>
<br>
printf("%d%d%d\n",i++,++i,++i,i++);<br>
<br>
would be hard to convert to Pascal automatically without blowing out the<br>
compiler.<br></blockquote><div><br></div><div>C's comma (sequence) operator is possible to use in Pascal:</div><div><br></div><div><div>function printf(fmt: PAnsiChar): Integer; cdecl; varargs; external 'msvcrt.dll' name 'printf';</div></div><div><br></div><div>begin</div><div> printf('%d%d%d'#10,1,2,3,4);<br></div><div>end.</div><div><br></div></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Best regards,<br>Maciej Izak</div></div></div>
</div></div>