[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
packed Data Type Modifier to Request Packed Data Structures
packed array[...] of <basetype>;
packed record
...
end;
In Standard Pascal, you can request arrays and records to be PACKED.
This means that, if possible, a more compact representation of certain
data types will be used, such as one bit per Boolean element. In Turbo
Pascal, the PACKED keyword has no effect; packing is always done and
is only performed to the byte (not bit) level.
-------------------------------- Example ---------------------------------
type
BitTable = packed array[0..99] of Boolean;
NameStr = packed array[0..50] of Char;
InfoRec = packed record
Displayed: Boolean;
XCoordinate: Integer;
YCoordinate: Integer
end;
See Also:
array
record
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson