[Lazarus] "nested" packed record?
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Mar 7 07:22:08 CET 2013
On Thu, 7 Mar 2013 12:03:23 +0800
Xiangrong Fang <xrfang at gmail.com> wrote:
> Hello,
>
> Is the "packed" keyword effective for nested records? i.e.
>
> TMyRecord = packed record
> Component: *packed* record
> Field: Integer;
> ... ...
> end;
> ... ...
> end;
>
> Does Component have to be packed to ensure entire record is packed, or,
> "packed" is only required for the outmost record keyword?
Each "record" needs its own "packed".
Mattias
More information about the Lazarus
mailing list