[fpc-pascal] reference-counted function results not initialized to nil

Sven Barth pascaldragon at googlemail.com
Sat Jun 25 16:14:47 CEST 2016

Am 25.06.2016 13:17 schrieb "J├╝rgen Hestermann" <juergen.hestermann at gmx.de>:
> Am 2016-06-25 um 09:23 schrieb Maciej Izak:
> > 2016-06-25 5:19 GMT+02:00 Michalis Kamburelis <michalis.kambi at gmail.com
> >     They were never guaranteed to be initialized to nil.
> > Result has special logic for string, dynamic array, method pointer and
variant (well documented ;) ):
> > "For a string, dynamic array, method pointer, or variant result, the
effects are the same as if the function result were declared as an
additional var parameter following the declared parameters. In other words,
the caller passes an additional 32-bit pointer that points to a variable in
which to return the function result."
> >
> Does that mean that we now need to read the whole documenation of Free
Pascal *and* also the whole documentation of Delphi?
> And what version of Delphi?
> Where is this documented within Free Pascal?

No one said that FPC's documentation is perfect, we do our best, but that
might still mean that there are missing pieces of information that we try
to fix as soon as they are known to be missing.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160625/e8358c0f/attachment.html>

More information about the fpc-pascal mailing list