<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-06-25 5:19 GMT+02:00 Michalis Kamburelis <span dir="ltr"><<a href="mailto:michalis.kambi@gmail.com" target="_blank">michalis.kambi@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">They were never guaranteed to be initialized to nil.<br></blockquote><div><br></div><div>Result has special logic for string, dynamic array, method pointer and variant (well documented ;) ):</div><div><br></div><div>"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></div><div><br></div><div><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><br></div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Best regards,<br>Maciej Izak</div></div></div>
</div></div>