This directive tells the compiler the minimum number of bytes it should use when storing enumerated types. It is of the following form:
{$PACKENUM xxx} {$MINENUMSIZE xxx} |
As an alternative form one can use {$Z1}, {$Z2} {$Z4}. Contrary to Delphi, the default is ({$Z4}).
So the following code
{$PACKENUM 1} Type Days = (monday, tuesday, wednesday, thursday, friday, saturday, sunday); |
{$Z1} Type Days = (monday, tuesday, wednesday, thursday, friday, saturday, sunday); |