[fpc-pascal] reference-counted function results not initialized to nil
hnb.code at gmail.com
Sat Jun 25 09:23:31 CEST 2016
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."
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal