<p>Am 25.06.2016 09:23 schrieb "Maciej Izak" <<a href="mailto:hnb.code@gmail.com">hnb.code@gmail.com</a>>:<br>
><br>
> 2016-06-25 5:19 GMT+02:00 Michalis Kamburelis <<a href="mailto:michalis.kambi@gmail.com">michalis.kambi@gmail.com</a>>:<br>
>><br>
>> They were never guaranteed to be initialized to nil.<br>
><br>
><br>
> Result has special logic for string, dynamic array, method pointer and variant (well documented ;) ):<br>
><br>
> "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."<br>
><br>
> <a href="http://docwiki.embarcadero.com/RADStudio/Berlin/en/Program_Control#Handling_Function_Results">http://docwiki.embarcadero.com/RADStudio/Berlin/en/Program_Control#Handling_Function_Results</a></p>
<p>And them being var-parameters basically states that they retain whatever value they had.</p>
<p>Regards,<br>
Sven</p>