[fpc-pascal] record helpers & how they effect records
luiz americo pereira camara
luizmed at oi.com.br
Tue Jun 9 03:58:17 CEST 2015
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?
Luiz
Em 08/06/2015 17:52, "David Emerson" <dle3ab at angelbase.com> escreveu:
> using a simple record, e.g.
>
> some_record_type = record
> a, b : longint;
> end;
>
> 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?
>
> I'm using mode objfpc
>
> Thanks!
> ~David
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150608/e14a1ff2/attachment.html>
More information about the fpc-pascal
mailing list