[fpc-devel] FPC Delphi compatibility question...

Maxim Egorov m.v.egorov at hotmail.com
Fri Jun 19 10:15:40 CEST 2009


Bruce Tulloch пишет:
> Delphi and Kylix assume that because the function F does not assign a
> value to Result (ie, does not assign a return value) that the Lvalue
> assigned from F remains unchanged.
>
> FPC assigns nil to A which IMHO is correct, but not when run in "bug for
> bug" Delphi compatibility mode.
>   
I guess that the behavior of FPC is correct and expectable. I just try
your example in Delphi 7, 2007, 2009 and was amazed. They indeed don't
assign anything to the array A. This is a Delphi compiler bug. FPC must
not copy delphi compiler mistakes. :)

Regards,
Maxim




More information about the fpc-devel mailing list