Previous: Object Types To the Table of Content Next: Type Compatibility

- 2.2.6.17 -
TMT Pascal Language Description
Pascal Language Structure
Types

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: Object Types To the Table of Content Next: Type Compatibility
Object Types Table of Content Type Compatibility

- 2.2.6.17 -