Previous: 2.2.6.16. Object Types To the Table of Contents Next: 2.2.6.18. Type Compatibility
2.2.6.16. Object Types Table of Contents 2.2.6.18. Type Compatibility

- 2.2.6.17. -
Table of Contents
2. TMT Pascal Language Description
2.2. Pascal Language Structure
2.2.6. Types
2.2.6.17. Structured Types Alignment (packed modifier)


2.2.6.17. Structured Types Alignment (packed modifier)


By default, the data in a structured type is aligned on double-word boundaries for faster access. However it's possible to include the reserved word packed to enable data compression.
For example,
type
  TEmployee: = packed record
    name: String[80];
    appointment_id: Word;
    stage: Byte;
end;
Starting from TMT Pascal 4, the setting defined by the {$OA} directive can be overridden by specifying the packed reserved word.


Previous: 2.2.6.16. Object Types To the Table of Contents Next: 2.2.6.18. Type Compatibility
2.2.6.16. Object Types Table of Contents 2.2.6.18. Type Compatibility

- 2.2.6.17. -