On Fri, Jan 29, 2010 at 16:22, Jonas Maebe <jonas.ma...@elis.ugent.be> wrote:
>
> On 29 Jan 2010, at 16:12, Aleksa Todorovic wrote:
>
>>>
>>> Depends. I do see a minor point for e.g. ++ and --, since I have been
>>> bitten
>>> by that when translating e.g. compression code (paszlib, lz77) when these
>>> are used in complex nested loops.
>>
>> Hopefully, it would be easy to implement it "manually":
>>
>> function PreInc(var value: T; Delta: Integer = 1): T;
>> function PostInc(var value: T; Delta: Integer = 1): T;
>
> The post-increment is only evaluated after the entire expression has been
> evaluated in C (and even that simplistic description is probably wrong if
> you put it next to what the standard actually says).

Ahhh, yes - I answered too quickly.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to