JC Chu wrote:
It is not possible to extend an enumeration type.  If you are not
willing to use separate sets to hold common and extended elements, you
can use a generic (not parametric) set type, say SET OF 0..31, that
can hold all possible elements, and define the possible elements as
constants.

Yes, except that that loses type checking.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to