[fpc-devel] Strange behaviour of ;

Peter Vreman peter at freepascal.org
Fri Oct 21 09:46:05 CEST 2005


> Marc Weustink wrote:
>
>> I can confirm this on linux-i386 2.0.0 and darwin-ppc 2.0.1
>>
>> It looks like "+ <some call>" is parsed wrong. The next "program"
>> compiles fine.
>
> Well, the compiler/parser thinks you use the unary + operator which it can
> safely throw away :) IIRC TP accepted the unary + operator for any
> expression so
> we did.

Delphi doesn't allow it. a single '+ <x>' is not changed implicitly to '0
+ <x>' so that there is checking done instead of ignoring the the '+'.






More information about the fpc-devel mailing list