[Lazarus] "nested" packed record?

Xiangrong Fang xrfang at gmail.com
Thu Mar 7 05:03:23 CET 2013


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?

Thanks,
Shannon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130307/0ae32416/attachment-0002.html>


More information about the Lazarus mailing list