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

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to