[fpc-pascal] Variant record consistency
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Sun Aug 7 18:11:27 CEST 2016
Given a declaration
const
topDataQword= 29;
topNameChar= 231;
type
Tfnord= record
case boolean of
false: (data: array[0..topDataQword] of qword);
true: (name: array[0..topNameChar] of char;
inode: qword) (* For recovery if name is
changed *)
end;
is it possible to enforce a rule that the two record variants must be
the same size?
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list