<p dir="ltr">I'd like to extend the question to class helpers, i.e., declaring and using the helper is equivalent to declaring and using a function that takes the class instance as a parameter?</p>
<p dir="ltr">Luiz</p>
<div class="gmail_quote">Em 08/06/2015 17:52, "David Emerson" <<a href="mailto:dle3ab@angelbase.com">dle3ab@angelbase.com</a>> escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">using a simple record, e.g.<br>
<br>
some_record_type = record<br>
a, b : longint;<br>
end;<br>
<br>
If I declare a record helper, does this change the record in any way? i.e. does the record take any more space when passed as a function parameter? Does it become somehow like an object, and need to be allocated? Or is the helper more like a language shortcut/convenience, where the compiler still treats the record the same way, and declaring and using the helper is equivalent to declaring and using a function that takes the record as a parameter?<br>
<br>
I'm using mode objfpc<br>
<br>
Thanks!<br>
~David<br>
<br>
<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div>