[fpc-devel] FPC Delphi compatibility question...
jonas.maebe at elis.ugent.be
Fri Jun 19 12:34:47 CEST 2009
On 19 Jun 2009, at 12:01, Maxim Egorov wrote:
> Micha Nelissen пишет:
>> Since the return value is undefined, anything is possible:
>> * calculate crc32 over executable
>> * random value from stack
>> * do nothing at all
> It's not true in the case of functions that return dynamic arrays,
> strings or interfaces. Because of these types require special
> finalization and they must be initialized to nil by default.
That is an implementation detail, and not something you can rely on as
far as semantics are concerned.
More information about the fpc-devel