[fpc-devel] Semicolon before else
Aleksa Todorovic
alexione at gmail.com
Fri Jan 29 17:07:15 CET 2010
On Fri, Jan 29, 2010 at 16:22, Jonas Maebe <jonas.maebe at 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.
More information about the fpc-devel
mailing list