7 Mar
2002
7 Mar
'02
12:02 a.m.
KOCHERALKOTA harikrishna wrote:
How can we set size of enumerated data type in GPC?.
That's not possible currently. Your best bet probably is using an integer type, e.g. `Cardinal (n)' (where n is the desired size in bits), and declaring the enum values as constants (starting from 0).
Because in GPC, even if we give 2 values (0..1) also, it assigns 4 bytes by default.
Yes (for alignment and efficiency reasons), and 1 bit in a packed record/array. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://agnes.dida.physik.uni-essen.de/~gnu-pascal/todo.html