[fpc-devel] TShiftState as enum

Marco van de Voort marcov at stack.nl
Thu Feb 17 08:58:01 CET 2005


> > TShiftState is defined as TShiftState = set of (...);
> > 
> > How can I iterate through the enums? If not, can we split and add an
> > enum:
> > 
> > TShiftStateEnum = (...)
> > TShiftState = set of TShiftStateEnum;
> > 
> > ?
> 
> Of course that is possible. It requires some imagination though (and a feel
> for obfuscated Pascal)


The example fails in Delphi 6 btw, but works in FPC :-)
Delphi does not allow low/high on sets

(I vote to keep this FPC extension btw)




More information about the fpc-devel mailing list