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

Micha Nelissen micha at neli.hopto.org
Fri Jun 19 11:32:53 CEST 2009


Maxim Egorov wrote:
> 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. :)

Since the return value is undefined, anything is possible:
* calculate crc32 over executable
* random value from stack
* do nothing at all

Micha



More information about the fpc-devel mailing list